void main()
{
int a=1;
printf("%d %d %d",a,++a,a++);
}
the output is supposed to be 1 2 2....but it is 3 3 1
this is due to calling conventions of C. if anyone can
explain me how it happens?
Answer Posted / hemanth
All,
output of above code is compiler depended i.e the order of
evalulation.
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
Mention four important string handling functions in c languages .
how is the examination pattern?
hi any body pls give me company name interview conduct "c" language only
What is the difference between the local variable and global variable in c?
What is c variable?
How do you override a defined macro?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is a ternary operator in c?
Explain indirection?
What are the disadvantages of c language?
What is the meaning of 2d in c?
What are identifiers in c?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Explain how do you determine the length of a string value that was stored in a variable?
What are the modifiers available in c programming language?