What will be the output of the following code snippet?
#include<stdio.h>
main()
{
    int num=5;
    int fun(int num);
    printf(""%d"",fun(num));
}
int fun(int num)
{
    if(num0)
        return(num+fun(num-2));
}


Posted on by