codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <iostream> using namespace std; int main(int argc, char** argv) { volatile const int number = 45; const volatile int * constPoint = &number; cout << "constPoint " << (void*)constPoint << endl; int * point = (int *) constPoint; cout << " point " << point << endl; * point = 54; cout << "&number " << (void*)&number << "; number " << number << endl; cout << " point " << point << "; *point " << *point << endl; }
Private
[
?
]
Run code
Submit