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
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is a keyword?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Describe the order of precedence with regards to operators in C.
Explain how do you print an address?
What is break in c?
Can we assign string to char pointer?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is void pointers in c?
What is the use of bitwise operator?
What are the 5 types of organizational structures?
How can type-insensitive macros be created?
What is the general form of #line preprocessor?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above