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 are the functions to open and close the file in c language?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
How can you find out how much memory is available?
Write a program to print factorial of given number using recursion?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Explain what is the concatenation operator?
Should a function contain a return statement if it does not return a value?
What does emoji p mean?
What are the storage classes in C?
Is c is a high level language?
What is the purpose of sprintf?
What is array in C
Explain Function Pointer?
How do you define CONSTANT in C?
Why is c called a mid-level programming language?