Multiple Choice
What is the difference between struct and class in C++?
A) all members of a structure are public and structures don't have constructors and destructors
B) members of a class are private by default and members of struct are public by default. when deriving a struct from a class/struct, default access-specifier for a base class/struct is public and when deriving a class, default access specifier is private.
C) all members of a structure are public and structures don't have virtual functions
D) all above
Correct Answer:

Verified
Correct Answer:
Verified
Q12: Which of the following statements is correct
Q13: Which of the following interface determines how
Q14: What happens when delete is used for
Q15: Predict the output of following C++ program#include<iostream>
Q16: Which feature of C++ contain the concept
Q18: Which of the following is true about
Q19: Output of following program?#include<iostream> using namespace std;
Q20: class Test { int x;};int main(){Test t;
Q21: What happens when a class with parameterized
Q22: Predict the output?#include <iostream> using namespace std;class