← Back to Question List
C++ Quiz #7
Pointer Dereference Output
What is the output of this code?
📄 Code
1#include <iostream>2using namespace std;34int main() {5 int x = 42;6 int *p = &x;7 *p = 100;8 cout << x << endl;9 return 0;10}