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 using namespace std; void fun(char*); int main()
{ char t[4]={‘0’, ‘1’, ‘2’, ‘3’}; fun(&t[0]); return 0;
}
void fun(char *a)
{ cout << *a; } A. It prints: 01
B. It prints: 1
C. It prints: 0
D. It prints: 0123

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.