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
What is the difference between malloc calloc and realloc in c?
What is the difference between volatile and const volatile?
What are the standard predefined macros?
What is the difference between formatted&unformatted i/o functions?
Explain how does free() know explain how much memory to release?
Is null equal to 0 in sql?
Why do we use pointer to pointer in c?
Define VARIABLE?
What is the best way of making my program efficient?
What do you mean by a local block?
How many header files are in c?
What is a #include preprocessor?
Write a C program in Fibonacci series.
How many identifiers are there in c?
Why flag is used in c?