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 / vignesh1988i

the answer is 6...since ++ as well as * gets the same
prority so the associativity will be right to left.. so it
will point to the value and then increment the value

Is This Answer Correct ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does int main () mean?

1032


What is int main () in c?

1093


Is c procedural or object oriented?

1024


What does sizeof int return?

1085


What is the use of static variable in c?

1092


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1090


Why is c known as a mother language?

1243


What is the meaning of && in c?

1024


What is typeof in c?

1018


What is the argument of a function in c?

1054


Why enum is used in c?

965


Write a program to print fibonacci series without using recursion?

1145


How can I dynamically allocate arrays?

1106


How would you rename a function in C?

1046


What is #include stdlib h?

1107