Pop Quiz

Tags:

gene-sis.pe.kr

Followings are C++ keywords almost never used. Nevertheless, explain each of following keywords. :-)

1) auto
2) explicit
3) export
4) mutable
5) register
6) volatile

Comments:
#1 – must know if you’ve ever learned C.
#2 – must know if you want to use C++, cuz some ppl use this keyword from time to time.
#3 – I myself didn’t know export keyword.
#4 – See http://www.parashift.com/c++-faq-lite/const-correctness.html#faq-18.13
#5 – you might have seen this keyword if you’ve used C about ten yrs ago.
#6 – must know if you want to use threads in C/C++; however, not to use them, but to avoid them. The volatile keyword is nothing but useless one.

Comments

2 responses to “Pop Quiz”

  1. abraxsus Avatar

    위의것 외에도 C++에 이런 예약어들이 있다고 하더군…
    문법을 본지가 하도 오래되었는데 그새 불어났단말인가-_-;;

    asm
    bool
    const_cast
    dynamic_cast
    false/true
    reinterpret_cast
    static_cast
    typeid
    typename
    wchar_t

  2. MKSeo Avatar
    MKSeo

    음. Effective C++ 을 읽어봐.. 3판 나왔는데, 정말 꼭 읽어봐야할 책임.
    wchar_t 빼고는 다 나오는거 같다 그 책에.

Leave a Reply

Your email address will not be published. Required fields are marked *