What will this Recursive function in C Print and what is the logic behind it?
#include <stdio.h>
int display(int x)
{
if (x < 0)
{
return (0);
}
printf("%d", x + display(x - 1));
x--;
return (x);
}
int main(void)
{
display(4);
return (0);
}
To be able to find what the above program w...
blog.ehoneahobed.com4 min read