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

What will happen when you attempt to compile and run the following code? #include #include using namespace std;
int fun(int);
int main()
{ int *x = new int; *x=10; cout << fun(*x); return 0; } int fun(int i) { return i*i; } A. It will print: 100
B. It will print: 101
C. It will print: 10
D. It will print: 1

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.