1: volatile const int a = 10; 2: int *ptr = (int *) &a; 3: *ptr = 1000; 4: cout << a << endl; 5: cout << *ptr << endl;
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment