constant

#include <iostream> using namespace std; int main() { const int z=39; int x; cin>>x; const int y=x; ++const_cast<int&>(y); cout<<y<<endl; ++const_cast<int&>(z); cout<<z<<endl; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.