Difference between Structure and Class in C++?
Answer Posted / madhusudhan
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.
3. Sizeof empty structure is 0 Bytes wer as Sizeof empty
class is 1 Byte
| Is This Answer Correct ? | 24 Yes | 20 No |
Post New Answer View All Answers
how to use C++?
sir please send me bpcl previous question papers
Define stl.
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
What is a standard template library (stl)?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What are the components of stl?
Can we use stl in coding interviews?
Name the different types of stl containers.
Explain stl.
How is stl different from c++ standard library?
What is stl stand for?
Why should a c++ programmer be interested in stl?
What is stl in oop?
How do I convert a stl file?