Difference between Class and Struct.
Answer Posted / swetcha
The only difference between a struct and a class is in the
default access. By default, all the members of a struct are
public whereas in a class, al the members are private. The
same is true for the default inheritance type: a struct
entails public inheritance by default whereas a class
entails private inheritance.
| Is This Answer Correct ? | 98 Yes | 23 No |
Post New Answer View All Answers
What do you mean by dynamic memory allocation in c? What functions are used?
Is c easy to learn?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Why dont c comments nest?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
How can I determine whether a machines byte order is big-endian or little-endian?
Write a program to reverse a given number in c language?
What is getche() function?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is the purpose of 'register' keyword?
What is structure of c program?
How we can insert comments in a c program?
Define circular linked list.
What is a constant and types of constants in c?
Can you please explain the difference between malloc() and calloc() function?