Computer Science - Object Oriented Programming Using C++ - Discussion


An array name is a _____

[A]. subscript
[B]. formal parameter
[C]. memory address
[D]. prototype

Answer: Option C


No answer description available for this question.

Ragavan said: (Sep 28, 2011)  
S. If we print the array name it prints the memory address of array.
For Example:

int a[2]={10,20}
cout<<a;// prints starting memory address of array 'a'
cout<<*a;//prints the value in base address 10

Amr Elghadban said: (Jan 2, 2012)  
We can say that an arry name is a pointer. I think it's the optimal solution to this question even it's not in the choses answers.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.