Difference between Class and Struct.
Answer Posted / ajay prajapat
1. Structure is value type where is class is refrance
type.So class data is store in heap where as stuct data are
store in stack.
2. default type of function in struct is public where as
private in class
| Is This Answer Correct ? | 55 Yes | 15 No |
Post New Answer View All Answers
Is it possible to pass an entire structure to functions?
What is the difference between array and structure in c?
What is c language and why we use it?
What is break in c?
How can you avoid including a header more than once?
What are the types of data structures in c?
What do you mean by keywords in c?
What is the difference between new and malloc functions?
What is the difference between far and near in c?
What is storage class?
Write a code to generate divisors of an integer?
Define macros.
Write a program to print factorial of given number using recursion?
what is a function method?give example?
What is the use of #include in c?