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 different types of linkage exist in c?
What are the different properties of variable number of arguments?
Why is structure important for a child?
What is c programming structure?
What are the different types of objects used in c?
What is the difference between Printf(..) and sprint(...) ?
Explain that why C is procedural?
What are the c keywords?
What is the use of header?
c program to compute AREA under integral
Is c language still used?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
Differentiate between new and malloc(), delete and free() ?
What is sizeof array in c?
Which is best linux os?