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

Dan rolls 2 fair dice and adds the results from each. Work out the probability of getting a total of 3
John wants to measure the height of the tree in his yard. He stands so that the top of his shadow matches up with the top of the tree’s shadow. John is standing
Can someone plz help me
What is the surface area?
Need help with chart
in grand canyon speech by theodore Roosevelt what is the authors position?​
The ratio of roses to daisies is 7 roses to 4 daisies. If there are 28 roses, how many daisies are there? There are daisies.
explain the land resource of nepal​
QOTD: What’s your zodiac sign? Mine’s Virgo.
4(2n+5) - 7(n+3) please