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

Discussion Forum : Object Oriented Programming Using C++ - Section 1 (Q.No. 34)
34.
An array name is a _____
subscript
formal parameter
memory address
prototype
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Ragavan said:   1 decade ago
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:   1 decade ago
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:

Your comments will be displayed after verification.