

MCQOPTIONS
Saved Bookmarks
1. |
Point out the correct statement will let you access the elements of the array using 'p' in the following program?
#include
|
A. | for(i=0; i<3; i++) { for(j=0; j<3; j++) printf("%d", p[i+j]); } |
B. | for(i=0; i<3; i++) printf("%d", p[i]); |
C. | for(i=0; i<3; i++) { for(j=0; j<3; j++) printf("%d", p[i][j]); } |
D. | for(j=0; j<3; j++) printf("%d", p[i][j]); |
Answer» D. for(j=0; j<3; j++) printf("%d", p[i][j]); | |