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


Please Help Members By Posting Answers For Below Questions

what is stack , heap ,code segment,and data segment

2221


Write a c program to demonstrate character and string constants?

1684


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

974


What is FIFO?

674


What is a union?

611






What is typedef example?

616


what is use of malloc and calloc?

1382


how logic is used

1500


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

2555


Why & is used in c?

713


What is a string?

666


What does main () mean in c?

614


What is c system32 taskhostw exe?

588


4. main() { int c=- -2; printf("c=%d",c); }

1367


Differentiate between null and void pointers.

630