1 1 vote int main() { int arr[]={0,1,2,3,4}; arr++; printf("%d",arr[0]); return 0; } Programming in C + – srestha 567 views answer comment Share Follow Print See 1 comment 1 1 comment reply papesh commented Aug 4, 2016 reply Follow flag I think it will give error.. Since u can not change base address of array.. 3 3 replyShare Please log in or register to add a comment.
1 1 vote There will be error that lvalue required b'coz we are trying to update constant pointer. Amit Prakash Tiwari answered Aug 4, 2016 Amit Prakash Tiwari comment Share Follow 0 reply Please log in or register to add a comment.