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

How are portions of a program disabled in demo versions?

1293


What is maximum size of array in c?

1039


Explain the ternary tree?

1024


Write program to remove duplicate in an array?

1078


What are header files and explain what are its uses in c programming?

1129


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1637


Explain argument and its types.

1059


What are the advantages of c language?

1091


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1721


How can a process change an environment variable in its caller?

1185


Explain zero based addressing.

1023


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3825


What does a function declared as pascal do differently?

1124


how can f be used for both float and double arguments in printf? Are not they different types?

1067


Write a program which returns the first non repetitive character in the string?

1123