in Programming in C edited by
411 views
0 votes
0 votes

What will be the output? for foo(4)

image:Q2_1.png

  1.   4332221234
  2.   4332221324
  3.  43222214
  4.   4332211223
in Programming in C edited by
411 views

1 comment

which function you hve call?? foo(4) or goo(4)
0
0

1 Answer

2 votes
2 votes

Answer is Option B

I have taken

foo() as f(), goo() as g() and printf() as pf() in my explanation.

Traverse Top-Down and Left to right. Wherever you've got pf(), print that number.

Related questions