Q. Which of the following is the correct way to define a structure in C++?
β
Correct Answer: (A)
struct MyStruct { int x; float y; };
Explanation: The correct way to define a structure is 'struct MyStruct { int x; float y; };'.