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

Which statements regarding the cultural characteristics of South America are true?
1. You are pushing a heavy shopping cart full of water bottles with a constant force. The shopping cart has mass of 250 kg and it is accelerating down the aisle
What is an example of foreshadowing from chapter 2 of Night?
There are 8 boxes, which contain a total of 64 sweaters, In a store warehouse. If the store needs 48 sweaters, how many boxes should they take.​
Someone who specializes in the care of a female and the developing fetus A. Gynecologist B. Obstetrician C. Pediatrician D. Oncologist
PLEASE, I NEED HELP! I’M DOING AN ASSIGNMENT AND ITS DUE NEXT TUESDAY!
If a file is being downloaded from various computers and not just one network computer or server, it is being downloaded the _____ way. B2C B2B P2P P2B
What waterway ran through the Kingdom of Kush? the Red Sea the Nile River the Tigris River the Mediterranean Sea
180 clockwise around point (0,1)​
Who was Bartolomeu Dias? a. He was commander of the conquistadors in the New World. b. He was the first European to make it to Asia. c. He was the financier of