Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

int arr[] = {1,2,3,4}
int *ptr=arr;

*(arr+3) = *++ptr + *ptr++;

Final contents of arr[]

Answer Posted / jai

{1,2,3,4}
++ has higher precedence over *, assigment will resolve to
*(arr+3) = *(++ptr) + *(ptr++);
*(arr+3) = 2 + 2;
=> Though ptr is pointing to address of 3rd element after
post increment.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the usage of pointer in c?

1149


In which language linux is written?

1191


What is the difference between malloc() and calloc()?

1740


What is the purpose of the preprocessor directive error?

1219


What is the use of pragma in embedded c?

1024


What is the advantage of c?

1070


How do you list a file’s date and time?

1041


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1487


What does c mean?

995


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1652


What is sizeof int?

1066


Write a program for finding factorial of a number.

1046


show how link list can be used to repersent the following polynomial i) 5x+2

2222


Explain what is page thrashing?

1064


What is a wrapper function in c?

1086