Ask Question
28 June, 17:26

What is the output of the following code? int * p; int x; x = 12; p = & x; cout << x << ", "; * p = 81; cout << * p << endl;

+5
Answers (1)
  1. 28 June, 20:48
    0
    Without

    #include

    using namespace std;

    It probably won't compile, so no output.

    The less pedantic answer:

    12,81

    on it's own line (std. endl).
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the output of the following code? int * p; int x; x = 12; p = & x; cout ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers