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


Please Help Members By Posting Answers For Below Questions

Can include files be nested? How many levels deep can include files be nested?

649


Explain what’s a signal? Explain what do I use signals for?

604


about c language

1595


Can 'this' pointer by used in the constructor?

608


Write a program to print factorial of given number using recursion?

598






C language questions for civil engineering

1233


Explain union. What are its advantages?

611


Explain what are preprocessor directives?

620


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2920


How are variables declared in c?

593


Why is %d used in c?

559


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

1768


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

637


What is void c?

560


Why does this code crash?

610