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 can I get random integers in a certain range?
What is a pointer in c?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Is linux written in c?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
When should a type cast not be used?
how is the examination pattern?
write a programming in c to find the sum of all elements in an array through function.
Why is main function so important?
What are the differences between Structures and Arrays?
What are the advantages of using new operator as compared to the function malloc ()?
What is time complexity c?
Why clrscr is used after variable declaration?
How does pointer work in c?