const and volatile

Nasza ocena:

3
Wyświetleń: 679
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
const and volatile - strona 1 const and volatile - strona 2

Fragment notatki:

const, volatile  const const int ci =7;  volatile volatile int vi=8; i++; i--; i=i+0;  const and volatile objects  we may call only the const and/or volatile methods for const and/or volatile objects respectively  Warning: declaring const and/or volatile method usually causes overloading of this method: int f(); int f() const;  const and/or volatile methods cannot be static.  neither constructor, nor destructor may be const and/or volatile  declaring const and/or volatile methods cannot lead to ambiguity: int f() const; // int f() const volatile; ... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz