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

What are two consecutive integers that have a sum of -67
What is the base pair for gcuaauguc?
How do the absence of sunspots affect earth climate
Paolo Portraits charges $15 per photo with no sitting fee. The graph shows the fees for clear image studio.Compare the functions by comparing their rates of cha
All of the following are guaranteed by the First Amendment except A. Freedom of speech B. Freedom of religion C. Freedom of the press D. Freedom from illegal
if two numbers have different signs, their quotient is always A. positive B. negative C. zero D. greater than 1 E. none of the above
Marcus plays basketball 42 hours a week. This is 6 times as many as he plays chess. How hours a week does Marcus play chess
True or false only people who chew smokeless tobacco can get oral cancer
describe how the immune system protects the body from the threat of disease. (minimum 5 sentences per paragraph)
Using the information from as many sources as possible, write a short paragraph that generalizes what life was like for southerners during Reconstruction.