656 views
0 0 votes
int A(int m, int n)

{

   if (m==0) return (n+1);

   if (n==0) return (m-1, 1);

  return A(m-1, A(m, n-1));

}

the output corresponding to A(1,7) will be_____________’

Please explain in details.

Please log in or register to answer this question.

Position:
Show:

Related questions

2 2 votes
1 1 answer
1.5k
1.5k views
Akshay Nair asked Jan 29, 2018
1,491 views
Why printf("%d",5%-2); is 1, not -1.
1 1 vote
0 0 answers
846
846 views
Akshay Nair asked Jan 29, 2018
846 views
What is the output of the following program?void main(){printf("%d",5%2);printf("%d",-5%2);printf("%d",5%-2);printf("%d",-5%-2);printf("%d",2%5);}A) 1,-1 -1 1 0B)1 -1 1 -...
1 1 vote
1 answers 1 answer
2.2k
2.2k views
Sahil Vidyarthi asked Aug 23, 2014
2,214 views
Explain the output :-int b[3][4] = {{1,2,3,4}, {5,6,7,8}, {9,10,11,12}};int p;p = (int )b;cout << (long)*p << "\t" << (long)(*p+1) << "\t" << (long)(*p+2);//long is used...
0 0 votes
0 0 answers
204
204 views