1 votes 1 votes iita asked Jan 17, 2017 iita 453 views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Gate Madrista commented Jan 17, 2017 reply Follow Share is the ans 70 0 votes 0 votes Rahul Jain25 commented Jan 17, 2017 reply Follow Share Can someone explain is typecasting necessary here??? And how is pointer incremented here?? 0 votes 0 votes santhoshdevulapally commented Jan 17, 2017 reply Follow Share 10 20 30 40 50 60 70 1000 1002 1004 1006 1008 1010 1012 (addressess) P is pointer it stores next array address.it is 1014(integer size is 2B) In printf statement P is decrmented by 1.Then P is now pointing to last address i.e)1012 the value in *(1012)=70. 2 votes 2 votes iita commented Jan 17, 2017 reply Follow Share could u plz explain me the meaning of this statment.. int *p = (int *) (&a + 1)..what it does 0 votes 0 votes santhoshdevulapally commented Jan 17, 2017 reply Follow Share (&a+1) it means pointing to next address (int*)(&a+1) it converts address to integer type. &(a+1) it means pointing to next element in array. 1 votes 1 votes iita commented Jan 17, 2017 reply Follow Share pointing to nest address means..pointing to next array address..?? isn't it..?? 1 votes 1 votes santhoshdevulapally commented Jan 17, 2017 reply Follow Share yes ,next array address 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes why &a+1 it can point to 2 element in the array I mean A[1] as &a gives base address and &a+1 gives second element address type casting to integer is not required??? saipriyab answered Nov 21, 2017 saipriyab comment Share Follow See all 0 reply Please log in or register to add a comment.