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

What is the explanation for cyclic nature of data types in c?

1222


Implement bit Array in C.

1157


Explain about the constants which help in debugging?

1382


What is volatile variable in c?

1099


What does double pointer mean in c?

1191


Can a file other than a .h file be included with #include?

1168


What are two dimensional arrays alternatively called as?

1191


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1039


What are the advantages and disadvantages of c language?

1020


What is the difference between #include

and #include “header file”?

1039


What is the general form of function in c?

1022


How can I send mail from within a c program?

1038


What is atoi and atof in c?

1089


How are Structure passing and returning implemented by the complier?

1172


Do you know what are the properties of union in c?

1084