+ 2
What is the out put of this code.
#include <iostream> using namespace std; int func(){ int i; i=0; func(); i++; return i; } int main() { func(); return 0; }
3 Answers
+ 14
It has no output. It's an Infinite recursion which acts as an infinite loop
+ 2
infinite recursion.