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 <iostream>
using namespace std;
int main()
{
int x=2, *y, z=3;
y = &z;
cout<<x**y*x***y;
return 0;
}
A . It prints: 36
B . It prints: 14
C . It prints: 16
D . Compilation error
Answer: D
Latest CPA-21-02 Practice Questions with 222 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments