Thursday, July 9, 2009

C++ Help!!?

Given:


int a[10][5] ;


to access the second item in the


3rd row, we would use:


a. a[2][3] ;


b. a[3][2] ;


c. *(*(a+3)+2) ;


d. *(*(a+2)+1) ;


e. none above

C++ Help!!?
b, its like this





0 1 2 3 4 5 6 7 8 9


0


2


3.....x


4





http://scritpvault.charmingsnakes.net


Asp / VbScript Tutorials and reference
Reply:C++ uses zero based indexes so the 3rd row second item would be a[2][1] and not a[3][2] which would be the third item of the 4th row. I would say the answer is e.
Reply:who said what?
Reply:b. a[3][2] ;

florist shop

No comments:

Post a Comment