Back to Multiple Choice Quiz
Pointer Dereference Output
C++ quiz · Question 7What 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}