const int z = 10;
const int *x = &z;
*const_cast <int *> (x) = 1;
const int &ref = z;
const_cast<int &> (ref) = 15;
cout<< "z= " << z;
cout <<"*x...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: spelunker Search: Search took 0.03 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |