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
Do you know what are bitwise shift operators in c programming?
Write a program on swapping (100, 50)
Why c is called procedure oriented language?
What is use of pointer?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
When a c file is executed there are many files that are automatically opened what are they files?
Explain the difference between exit() and _exit() function?
Why c is called top down?
what is the format specifier for printing a pointer value?
Why is sprintf unsafe?
What is const volatile variable in c?
What does nil mean in c?
How many types of sorting are there in c?