f()
{
int a=2;
f1(a++);
}
f1(int c)
{
printf("%d", c);
}
c=?
Answer Posted / viji
a++ is postfix operator so it first assigns its values and
then incremented. In above statement the value of a is first
assigned to c and then increment. so the output of c is 2;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is static and auto variables in c?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
What is difference between structure and union with example?
Why static is used in c?
Why do we use namespace feature?
How is = symbol different from == symbol in c programming?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is #line used for?
Explain what is the difference between null and nul?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What is the purpose of void in c?
What is c system32 taskhostw exe?
What is exit() function?
Describe the header file and its usage in c programming?
Difference between MAC vs. IP Addressing