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 / vishnu
first calculations will be done from right to left and then
prints accroding to the parameters passed.
| Is This Answer Correct ? | 29 Yes | 8 No |
Post New Answer View All Answers
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is binary tree in c?
Should a function contain a return statement if it does not return a value?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Is javascript based on c?
How will you write a code for accessing the length of an array without assigning it to another variable?
what is the different bitween abap and abap-hr?
What are qualifiers and modifiers c?
diff between exptected result and requirement?
Describe the header file and its usage in c programming?
Does c have function or method?
What are the two types of functions in c?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Why we use stdio h in c?