Answer to Question #326495 in C++ for nickname

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


1
Expert's answer
2022-04-10T03:12:31-0400

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

Answer: D) A memory address


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS