What are the differences between a struct and a class in
C++?
Answer Posted / ramesh kasi
The only difference is related to the default access
specifier.
The members of a structure have public access by default.
The members of a calss have private access by default.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the characteristics of friend functions?
What do you mean by global variables?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What is & in c++ function?
Is it possible to use a new for the reallocation of pointers ?
Explain the extern storage classes in c++.
Is c++ a programming language?
Why is standard template library used?
What is c++ iterator?
What is rvalue?
What is a c++ vector?
What are static and dynamic type checking?
What are arrays c++?
What is the syntax for a for loop?
Differentiate between an external iterator and an internal iterator?