Difference between Class and Struct.
Answer Posted / naksh @tcs
The major difference between struct and class is :
Struct donot contain functions(methods) as its members.
Yes, by default members of struct are public and that of a
class are private.
| Is This Answer Correct ? | 33 Yes | 79 No |
Post New Answer View All Answers
What are the advantages and disadvantages of pointers?
What are the functions to open and close the file in c language?
What is the -> in c?
Can we declare function inside main?
What is 02d in c?
Is c dynamically typed?
What is an identifier?
Which header file is essential for using strcmp function?
Explain what is the benefit of using an enum rather than a #define constant?
How can you tell whether two strings are the same?
What is NULL pointer?
What are the restrictions of a modulus operator?
What is void c?
Where can I get an ansi-compatible lint?
What is the difference between abs() and fabs() functions?