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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments