1. |
What would be the equivalent pointer expression for referring the array element a[i][j][k][l] |
|||||||
Answer: Option B Explanation: If we want to refer one dimensional we just use single pointer ie like *p, if we need to refer two dimensional we have to use double pointer reference ie *(*p),,if we have to refer 4 at a time just use 4 pointer statement i.e. *(*(*(*(p))))and so on..... ptr[0]------>*(ptr+0); Like that: a[i]---->*(a+i); |
Post your comments here:
Name *:
Email : (optional)
Your comments will be displayed only after manual approval.