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 is strcmp in c?
how to make a scientific calculater ?
What is the use of f in c?
What is the sizeof () operator?
What do mean by network ?
What is wrong with this initialization?
Explain what is the benefit of using enum to declare a constant?
What is sizeof int in c?
How does struct work in c?
Explain what are compound statements?
Give the rules for variable declaration?
Here is a neat trick for checking whether two strings are equal
Are negative numbers true in c?
What is a nested formula?
Explain the red-black trees?