Pointers Questions and Answers
Practice ModeShowing 10 of 217 questions
Q41
Given the declaration double prec [5]; the address of the element prec [2] is obtained by:
Answer: Option C
Q42
Given the declaration int prec[5]; the element prec[2] is accessed by
Answer: Option D
Q43
Given float x [5][5]; the address of the element x [2] [3] is obtained by
Answer: Option D
Q44
Given char s[4][10]; the element s[2][4] is accessed by
Answer: Option D
Q45
Given int a[5][5]; identify the correct expression, yielding the starrting element.
Answer: Option D
Q46
Given int x[5] [10] [8]; find the address of the element x[2][3][5].
Answer: Option D
Q47
Given int x [5][5][5]; find the value of the element x[2][3][4]
Answer: Option D
Q48
Given int a [5]; how to declare arrau in the function definition if the function call is sort (a).
Answer: Option C
Q49
The declaration float *a[5]; is
Answer: Option C
Q50
The declaration int (*p) [8]; is
Answer: Option B