What is the Difference between Class and Struct?
Answer Posted / manju
The only difference between class and struct is that
in class all members are private by default whereas in
struct the members are by default public.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is the difference between array_name and &array_name?
How can you check to see whether a symbol is defined?
What is adt in c programming?
Write a Program to accept different goods with the number, price and date of purchase and display them
Write a program to print factorial of given number using recursion?
What is a char c?
Explain how can I prevent another program from modifying part of a file that I am modifying?
how can f be used for both float and double arguments in printf? Are not they different types?
What is the use of structure padding in c?
Why are all header files not declared in every c program?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
In a byte, what is the maximum decimal number that you can accommodate?
Why is it important to memset a variable, immediately after allocating memory to it ?
What is the size of empty structure in c?
What is #ifdef ? What is its application?