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

If4 times the reciprocal of a number is 3 more than 5/2 times the reciprocal of that number find the number Show your work
What is the simplest form for the product 3/5 •25/36 is?
what events happened beforeloyalists left boston and philadelphia?
what events happened beforeloyalists left boston and philadelphia?
what is 4 over 9 minus 1 over 12 equal simplified?
What is the simplest form for the product 3/5 •25/36 is?
What is the simplest form for the product 3/5 •25/36 is?
what events happened beforeloyalists left boston and philadelphia?
If4 times the reciprocal of a number is 3 more than 5/2 times the reciprocal of that number find the number Show your work
what events happened beforeloyalists left boston and philadelphia?