What happens when you attempt to compile and run the following code?
#include
using namespace std;
void fun(int i);
int main()
{
int i=0;
i++;
for (i=0; i<=5; i++)
fun(i);
}
return 0;
void fun(int i)
if (i==3)
return;
cout << i;
It prints: 05
It prints: 012345
It prints: 01245
It prints: 0
Submit