What happens when you attempt to compile and run the following code?

What happens when you attempt to compile and run the following code?
#include #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; } A. It prints: 05
B. It prints: 012345
C. It prints: 01245
D. It prints: 0

Download Printable PDF. VALID exam to help you PASS.

Posted in: CPA

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.