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
When can you use a pointer with a function?
Is c language still used?
code for find determinent of amatrix
How do I get an accurate error status return from system on ms-dos?
What are multibyte characters?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Write a program to identify if a given binary tree is balanced or not.
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What is the best organizational structure?
Explain the advantages of using macro in c language?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Write a program to find factorial of a number using recursive function.
Tell me what is null pointer in c?
will u please send me the placement papers to my mail???????????????????
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.