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
How many levels of pointers can you have?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is huge pointer in c?
Does * p ++ increment p or what it points to?
Tell me with an example the self-referential structure?
What is a void pointer in c?
What are terms in math?
Is a pointer a kind of array?
Is there a built-in function in C that can be used for sorting data?
Who invented bcpl language?
given post order,in order construct the corresponding binary tree
What does typedef struct mean?
Write a progarm to find the length of string using switch case?
What is the use of extern in c?
What is difference between %d and %i in c?