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
What does int main () mean?
What is int main () in c?
Is c procedural or object oriented?
What does sizeof int return?
What is the use of static variable in c?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Why is c known as a mother language?
What is the meaning of && in c?
What is typeof in c?
What is the argument of a function in c?
Why enum is used in c?
Write a program to print fibonacci series without using recursion?
How can I dynamically allocate arrays?
How would you rename a function in C?
What is #include stdlib h?