What happens when you attempt to compile and run the following code?
#include
{ 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
What happens when you attempt to compile and run the following code?
#include
{ 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