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 / sathish
execution does from right to left and while printing it goes from left to right.
Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
Why doesnt that code work?
What is operator promotion?
Explain how can a program be made to print the line number where an error occurs?
How can you access memory located at a certain address?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
why programs in c are running with out #include
When is a “switch” statement preferable over an “if” statement?
What is quick sort in c?
write a c program for swapping two strings using pointer
What is the difference between the = symbol and == symbol?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Write a program to use switch statement.
What is the purpose of macro in C language?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
How many types of operators are there in c?