View Single Post
  #1  
Old 07-03-2009
hashimi's Avatar
hashimi hashimi is offline
Teenager
 
Join Date: Nov 2006
Location: Kabul
Posts: 152
Rep Power: 4
hashimi is on a distinguished road
Memory address of the first element

I was solving a quiz and this is a question:

Which of the following gives the memory address of the first element in array foo, an array with 100 elements?

A. foo[0];
B. foo;
C. &foo;
D. foo[1];


Both foo and &foo gives the same result. Which one is true?

Thanks
Reply With Quote