1 votes 1 votes Find Output of below Code#include<stdio.h>int sum(int n) { n = 3; if (n == 2) return 2; return sum(n-1)*n ;}int main() { printf("%d\n", sum(5) ); return 0} Programming in C programming-in-c programming recursion output 2-marks + – harshitraj12 asked Jun 23 harshitraj12 90 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 7 votes 7 votes The invocations of function call will look like this : After Invocation of Sum(5) it will keep on calling Sum(2) again and again. After sometime stack will be full and program will terminate abnormally without printing anything on the screen. Bhaskar_Saini answered Jun 23 • selected 6 days ago by Shaik Masthan Bhaskar_Saini comment Share Follow See all 0 reply Please log in or register to add a comment.