0 votes 0 votes Let p be character pointer, consider the following statement p[i]=*(p+i) i[p]=*(i+p) p+i=&(i[p]) how many are true ?? Programming in C programming-in-c + – Gurdeep Saini asked Jan 11, 2019 Gurdeep Saini 595 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Shubhgupta commented Jan 11, 2019 reply Follow Share all 3. if you are having problem with any one then simply write one program and test. this way will give you clear picture. 0 votes 0 votes eyeamgj commented Jan 14, 2019 reply Follow Share Shubhgupta can u give a small example for 3rd one i took as char *p="ram"; r a m null 0 1 2 3 now while exploring the 3rd one i am getting p+i =p+i let i=1 then how we can do such assignment?? 0 votes 0 votes Shubhgupta commented Jan 14, 2019 reply Follow Share @eyeamgj, they are not taking about that is this assignment possible or not ? they are talking about which statements are true. so 3) P+1 and &P[1] will both have the same value which is the address where a is present. 0 votes 0 votes eyeamgj commented Jan 14, 2019 reply Follow Share ACTUALLY WE ARE ASSIGNING TO SAME MEMORY LOCATION HENCE VALID ? 0 votes 0 votes Please log in or register to add a comment.