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
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 different types of stl containers?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
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.
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
In what scenario does the Logical file and Physical file being used?
What are stl algorithms?
Explain stl.
What is the stl, standard template library?
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 stl vector?
Is stl part of c++ standard?
What is stl in oop?
What is stl language?
What is the use of stl?