Difference between Class and Struct.
Answer Posted / praveena.g
class ex:-
class classname
{
int a;
float b;
}
struct {
int a;
int b;
}struct name;
in the struct all members are by default public,
in the class we can deference it private,public,protected.
like these we class will taken.
Is This Answer Correct ? | 62 Yes | 19 No |
Post New Answer View All Answers
What does c value mean?
What does sizeof return c?
What is #define size in c?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Explain what does a function declared as pascal do differently?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is #define in c?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Can a pointer point to null?
Why we use void main in c?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Mention four important string handling functions in c languages .
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Explain how can I convert a number to a string?
What is the difference between volatile and const volatile?