What is the difference between Class and Structure?
Answer Posted / navin
Structure: Initially (in C) a structure was used to bundle
different type of data types together to perform a
particular functionality. But C++ extended the structure to
contain functions also. The major difference is that all
declarations inside a structure are by default public.
Class: Class is a successor of Structure. By default all
the members inside the class are private.
| Is This Answer Correct ? | 182 Yes | 55 No |
Post New Answer View All Answers
what are the iterator and generic algorithms.
How much maximum can you allocate in a single call to malloc()?
How does list r; differs from list r();?
What language is a dll written in?
How do I tokenize a string in c++?
write a programme to get a character and thier ASCII value
What is a stack c++?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What is a binary file? List the merits and demerits of the binary file usagein C++.
Explain the use of vtable.
What is while loops?
Array base access faster or pointer base access is faster?
Write about the various sections of the executable image?
What are the c++ access specifiers?
What do you mean by storage classes?