esdancer41 esdancer41
  • 18-01-2024
  • Computers and Technology
contestada

What would the following code print to the screen? (assume all includes)
int a = 42;
int* ptr = &a;
*ptr = 12;
a = 4;
cout << *ptr << endl;

a) 42
b) 12
c) 4
d) An error would occur before it could print

Respuesta :

Otras preguntas

What is the solution to the equation below y/-4 = 2
A networked scanner is a type of _____. groupware peripheral server shared drive
What immigration laws passed during the 1920s that changed united states policy?
How many hours did the average u.s. adult spend reading newspapers in 2009? 1,721 50 716 158?
Which statement does not describe El Greeks work? El Greco was a Venetian artist. King Philip II was so disappointed with El Greco le work that he refused to di
What is the volume for a hemisphere.
In World War I, this was the line of fighting that stretched from Belgium southward through most of France
How does climate change affect the ocean ecosystem?
Which occured first,Confucianism OR Daoism
if u ever went to France,what would you buy if u had a budget of 7k