edited by
877 views
0 votes
0 votes
#include<stdio.h>
int reverse(int);
int main()
{
    int num=4;
    reverse(num);
    return 0;
}
int reverse(num)
{
    if(num==0) return 0;
    else
      printf("%d",num);
      reverse(num--);
}

What is the output ?

edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
Desert_Warrior asked May 16, 2016
4,090 views
#include<stdio.h int main() { int a[10][20][30] = {0}; a[5] = 2; return 0; }(a) printf("%d",*(((a+5)+2)+1));(b) printf("%d", *((a+5)+2)+1);(c) printf("%d",*(*(*(a+5)+2)...
0 votes
0 votes
1 answer
2
Desert_Warrior asked May 16, 2016
2,311 views
#include<stdio.h int main() { int a = 5; int b = ++a * a++; printf("%d ",b); return 0; }(a) 25 (b) 30 (c) 36 (d) Undefined Behavior
0 votes
0 votes
2 answers
3
Desert_Warrior asked May 16, 2016
8,789 views
#include<stdio.h int main() { int a = 5; switch(a) { default: a = 4; case 6: a ; case 5: a = a+1; case 1: a = a-1; } printf("%d \n",a); return 0; }(a) 5 (b) 4 (c) 3 (d) N...
0 votes
0 votes
2 answers
4