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 letter indicates the wavelength of the wave? A. A B. B C. C D. D
A rectangular cereal box has a base of 189 square centimeters and a height of 32 centimeters what's the volume
Assume a sperm has penetrated a polar body and their nuclei fuse. Why would it be unlikely for the resulting cell to develop into a healthy embryo.
In the book Walk Two Moons, Why does her father want Sal to accompany her grandparents to Idaho?
according to the articles of confederation who had the most power
What is the most widely practiced religion in Europe?
Instructions:Select the correct answer. Read this sentence, which contains a biblical allusion from the story "The Lightning-Rod Man ."See, the scroll of the
A card game is on sale for 10% off. If the sales price is $18 what is the regular price of the card game? What percent are you paying for?
You are given three beakers of unknown liquids. One beaker contains pure water. One contains salt water. One contains sugar water. Without tasting the liquids,
Fine pebbles are 2.0 to 5.0 mm in diameter. Sand is 0.05 to 2.0 mm in diameter. Which of the following statements is true? A. Fine pebbles have a lower termina