Difference between Structure and Class in C++?
Answer Posted / ashish raghuvanshi
Basically in C++ structure and class are same but with some
minor diffrences listed below:-
1. In classes all the members by default are private but in
structure members are public by default.
2. There is no term like constructor and destructor for
structs, but for class compiler creates default if you
don't provide.
Is This Answer Correct ? | 79 Yes | 14 No |
Post New Answer View All Answers
What is a list in c++ stl?
What is stl stand for?
What is the stl, standard template library?
how to use C++?
What does stl stand for in basketball?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
Why should a c++ programmer be interested in stl?
Explain stl.
Is stl open source?
What are the various types of stl containers?
What is stl language?
What are stl algorithms?
What is stl stack?
Can we use stl in coding interviews?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.