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

60% of $120 is $_____
The importants of english our life.
What territories were gained after the mexican war
What is the area of a shape that has the length of 10cm and the height of 5cm?
a carpenter is cutting dowels from a piece of wood that is 10 inches long. how many 1/2 dowels can the carpenter cut?
Paraphrase the sentences below using the subjunctive mood after wish: a)It's a pity people don't keep rivers and lakes clean. b)What a pity the government doesn
Which event during the Civil Rights era did the most to focus the attention of white Americans on the struggles of African Americans in the South?
How to simplify 216k4
The Marshall Plan contributed to economic growth by
How does quadrilaterals relate to triangles?