+ 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; }

28th Sep 2017, 8:10 AM
Bashir Ahmad
3 Answers
+ 14
It has no output. It's an Infinite recursion which acts as an infinite loop
28th Sep 2017, 8:23 AM
Babak
Babak - avatar
+ 2
infinite recursion.
28th Sep 2017, 11:43 AM
Ahmad Zubair
Ahmad Zubair - avatar