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 |
explain what are actual arguments?
Difference between strcpy() and memcpy() function?
what is the flow of execution in cprogram? ex:printf();,scanf();
write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,25,26,27};
Which of the following about automatic variables within a function is correct ? a.its type must be declared before using the variable b.they are local c.they are not initialised to zero d.they are global.
write a fuction for accepting and replacing lowercase letter to'Z' with out using inline function.
How many header files are in c?
How the c program is executed?
What are the 5 elements of structure?
can a union be self-referenced?
What does malloc () calloc () realloc () free () do?
What is a macro?