Kizspy | Question: 18
(Choose 1 answer)
What is the output of the following C++ code snippet?
#include <iostream>
using namespace std;
struct Point {
int x;
int y;
FJOVERFLOW.Com
};
int main() {
Point p1 {10, 20};
Point p2;
p2 = p1;
cout << p2.x << " " << p2.y;
return 0;
A. 10 20
B. 00
C. p1.x p1.y
D. Compilation Error