Already declared is an array such as:
char ma[10][20];
The address of a specific element is gotten using:
p = &ma[1][18];
Which element will p point to after p++; ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Adding 1 to a address of member of array, get the address of the next member. since p is the address of
ma[1][18], which is member of the arrayma[1],p+1is the address ofma[1][19]. (And of course,p++;is likep=p+1;)Edit: I assumed, of course, that p is
char*. If it’s something else, the answer can be other.