f()
{
int a=2;
f1(a++);
}
f1(int c)
{
printf("%d", c);
}
c=?
Answer Posted / jack
in line 4, a's value is pushed on to stack and then
increaments.........In line 6 the function f1 pops the a's
value and assigned to c so .......c is value is 2.......
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
what is stack , heap ,code segment,and data segment
Write a c program to demonstrate character and string constants?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
What is FIFO?
What is a union?
What is typedef example?
what is use of malloc and calloc?
how logic is used
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
Why & is used in c?
What is a string?
What does main () mean in c?
What is c system32 taskhostw exe?
4. main() { int c=- -2; printf("c=%d",c); }
Differentiate between null and void pointers.