retagged by
592 views

1 Answer

1 1 vote

ans B

1st time foo is called then k=1     pf(1)    k=2

2nd  time foo is called then k=2     pf(2)    k=3

op=1,2

Answer:
Position:
Show:

Related questions

0 0 votes
1 1 answer
552
552 views
Bikram asked May 14, 2017
552 views
What is the output of the following program? int fun (int z) { if( z==0 || z==1 ) return 1; else return fun(z-1) ; } int main() { int y; y=fun(8); printf(“%d”, y)...
3 3 votes
1 answers 1 answer
1.7k
1.7k views
Bikram asked May 14, 2017
1,671 views
What is the output of the below mentioned code snippet?#include <stdio.h int main() { int i=10; static int x=i; if(x==i) printf("Equal"); else if(x>i) printf("Greater"); ...
2 2 votes
1 answers 1 answer
942
942 views
Bikram asked May 14, 2017
942 views
Read the following program fragment: #include<stdio.h int main() { int p = 2, q = 5; p = p^q; q = q^p; printf("%d%d",p,q); return 0; }The output is:$5 \ 2$$2 \ 5$$7...
1 1 vote
1 answers 1 answer
662
662 views
Bikram asked May 14, 2017
662 views
What is the output of the following program?#include <stdio.h int main() { int a = 0; switch(a) { default: a = 4; case 6: a ; case 5: a = a+1; case 1: a = a-1; } printf("...