current position:Home>What does the following operation mean

What does the following operation mean

2022-01-27 01:01:28 CSDN Q & A

char c1[];
int i=2;
c1=c1+i+1;




Refer to the answer 1:

c1 Is the first address of the array ,c1 = c1+i +1=c1+3, It's equivalent to c1 = &c1[3]




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270101272144.html

Random recommended