Unicobabychem Unicobabychem
  • 25-01-2017
  • Computers and Technology
contestada

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

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 03-02-2017
Without

#include <iostream>
using namespace std;

It probably won't compile, so no output.

The less pedantic answer:

12,81

on it's own line ( std.endl).
Answer Link

Otras preguntas

round 47.6001 to the nearest thousandth_______.
How did the death of Malik Shah affect the Seljuk Empire?
How did Diocletian succeed in preserving the empire?
In what territory was the Tree of the Great Peace planted?
When you divide me by 5 the remainder is 4. I have two digits. Both digits are odd. The smog my digits is 10
Read this sentence from the text: The Pony Express was the first rapid transit and the first fast mail line across the continent from the Missouri River to the
if 19×x is 208 whats x?
Why do you think revolution swept so many African nations following their independence from European rule?
How did the death of Malik Shah affect the Seljuk Empire?
What is the name of the organelle that is responsible for digesting and recycling materials?