Q17
Multiple choice
Which code, inserted at line 8, generates the output "100"?
#include <iostream>
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;
}
Select all that apply.