in Programming in C
278 views
0 votes
0 votes
void printTwoNumbers( int k ) {
   if (k == 0) return;
   printf ( "%d ",  k );
   printTwoNumbers( k - 1 );
   printf( “%d” , k );
}
Void main()
{
printTwoNumbers(3);
}
What is printed as a result of the call printTwoNumbers(3)?
in Programming in C
278 views

3 Comments

321123
solve using recursion tree method.
0
0
i got  wrong ans
0
0
321 123  ...
0
0

Please log in or register to answer this question.