Ask Question

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

+1
Answers (1)
  1. 8 March, 04:12
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers