Question #326495

Observe the following code:

 

int nums[3] = {1, 2, 3};

std::cout << nums;

 

What will be output to the screen?


A: 1

B: 3

C: 123

D: A memory address


Expert's answer

'nums' variable by itself is a pointer, or, in other words, an address of a memory cell

Answer: D) A memory address


LATEST TUTORIALS
APPROVED BY CLIENTS