0

What is the output of the program

#include <stdio.h> main() junk( i,j) int i=5; j=2;i=i*j; junk(i,j); j=i*j; printf("\n %d%d",i,j); }

30th Mar 2020, 5:14 AM
V Sandralega
V Sandralega - avatar
1 Answer
+ 1
Code is not valid. main and junk should be defined separately. if you call junk(i,j) from junk(int i, int j) without any condition then you will get stack overflow (infinite recursion). It is unclear what you are trying to do in your code.
30th Mar 2020, 6:23 AM
andriy kan
andriy kan - avatar