f()
{
int a=2;
f1(a++);
}
f1(int c)
{
printf("%d", c);
}
c=?
Answers were Sorted based on User's Feedback
Answer / jack
in line 4, a's value is pushed on to stack and then
increaments.........In line 6 the function f1 pops the a's
value and assigned to c so .......c is value is 2.......
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / 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 |
Answer / banavathvishnu
a value will be first assigned to C in the Function and
latter it will be incremented in f() function.
so the value C remains 2
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between strcpy() and memcpy() function?
with out using main how to execute the program?
write a program structure to find average of given number
Is there any demerits of using pointer?
Combinations of fibanocci prime series
Can we write a program without main() function?
how to find the size of the data type like int,float without using the sizeof operator?
input may any number except 1,output will always 1.. conditions only one variable should be declare,don't use operators,expressions,array,structure
Write a program to print fibonacci series using recursion?
Why can’t constant values be used to define an array’s initial size?
Why is c called a mid-level programming language?
Using which language Test cases are added in .ptu file of RTRT unit testing???