Which code, inserted at line 8, generates the output “100”?

Which code, inserted at line 8, generates the output “100”?
#include using namespace std;
int fun(int); int main()
{ int *x = new int; *x=10; //insert code here return 0; }
int fun(int i) { return i*i; }
A. cout << fun(*x) ;
B. cout << fun(10);
C. cout << fun(5) ;
D. cout << fun(y) ;

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.