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...

find the output of the following program
main()
{
int x=5, *p;
p=&x;
printf("%d",++*p);
}

Answer Posted / rahul khare

6
becoz it(++*p) will evaluate like this-
1)
*(p)- gives value at this address that is 5
2)
now increment ++5
that is 6.

Is This Answer Correct ?    37 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you call a function, given its name as a string?

1118


Why use int main instead of void main?

1086


What is array of structure in c programming?

1258


What is typedef?

1365


What are the valid places to have keyword “break”?

1061


Where register variables are stored in c?

935


Explain argument and its types.

1022


Is python a c language?

964


Describe dynamic data structure in c programming language?

1063


What are header files and what are its uses in C programming?

1170


Is exit(status) truly equivalent to returning the same status from main?

1028


Why flag is used in c?

1096


How can I split up a string into whitespace-separated fields?

1031


What is break in c?

1007


how to find anagram without using string functions using only loops in c programming

3156