1 1 vote Programming in C + – iita 1.1k views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Gate Madrista commented Jan 17, 2017 reply Follow flag is the ans 70 0 0 replyShare Rahul Jain25 commented Jan 17, 2017 reply Follow flag Can someone explain is typecasting necessary here??? And how is pointer incremented here?? 0 0 replyShare santhoshdevulapally commented Jan 17, 2017 reply Follow flag 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 2 replyShare iita commented Jan 17, 2017 reply Follow flag could u plz explain me the meaning of this statment.. int *p = (int *) (&a + 1)..what it does 0 0 replyShare santhoshdevulapally commented Jan 17, 2017 reply Follow flag (&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 1 replyShare iita commented Jan 17, 2017 reply Follow flag pointing to nest address means..pointing to next array address..?? isn't it..?? 1 1 replyShare santhoshdevulapally commented Jan 17, 2017 reply Follow flag yes ,next array address 0 0 replyShare Please log in or register to add a comment.
0 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 0 reply Please log in or register to add a comment.