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 are portions of a program disabled in demo versions?
What is maximum size of array in c?
Explain the ternary tree?
Write program to remove duplicate in an array?
What are header files and explain what are its uses in c programming?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Explain argument and its types.
What are the advantages of c language?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
How can a process change an environment variable in its caller?
Explain zero based addressing.
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.
What does a function declared as pascal do differently?
how can f be used for both float and double arguments in printf? Are not they different types?
Write a program which returns the first non repetitive character in the string?