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
'nums' variable by itself is a pointer, or, in other words, an address of a memory cell
Answer: D) A memory address
Comments
Leave a comment