View Single Post
  #1 (permalink)  
Old 08-19-07, 10:07 PM
Volkun Volkun is offline
New Member
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Two dimensional array

I have a test question that I need help in understanding.

Given the following two-dimensional arrary declaration and initialization:

int a[ ][4] = {{1, 2, 3, 4}, {5, 6, 7, 8}};

what is the value of the expression *(a[1]+[2])?

choices for answers are:

a. 3
b. 6
c. 7
d. The subscript exceeds array bounds.

My book (C in Dissection) is of no help.

Thank you.

Vulkun
Reply With Quote