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 is the newline escape sequence?

1044


Why & is used in scanf in c?

1067


What is meant by 'bit masking'?

1352


Can we change the value of static variable in c?

990


What is a structure in c language. how to initialise a structure in c?

1038


What header files do I need in order to define the standard library functions I use?

1019


Can you please explain the difference between malloc() and calloc() function?

1075


What are operators in c?

994


Is return a keyword in c?

1049


pierrot's divisor program using c or c++ code

2191


What is the right type to use for boolean values in c? Is there a standard type?

982


program for reversing a selected line word by word when multiple lines are given without using strrev

2442


What is the modulus operator?

1172


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

1211


Write a program on swapping (100, 50)

1081