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
How many levels of pointers can you have?
What is quick sort in c?
Does c have circular shift operators?
What is a lookup table in c?
What is the -> in c?
What are shell structures used for?
What is the translation phases used in c language?
What is #include stdio h?
Wt are the Buses in C Language
What is a class c rental property?
Tell me what is null pointer in c?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What are the loops in c?
How can I use a preprocessorif expression to ?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above