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); }
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.