What is the difference between Class and Structure?
Answer Posted / vadivel
i. Structure are value type where as class are reference
type.
ii. Structure are default public where as class are default
private.
iii. 'this' pointer will work only in class.
| Is This Answer Correct ? | 395 Yes | 78 No |
Post New Answer View All Answers
Explain this pointer?
How do you flush a buffer in c++?
Is java easier than c++?
What is an incomplete type in c++?
What is the difference between ++ count and count ++?
Can you please explain the difference between static and dynamic binding of functions?
write a function signature with various number of parameters.
What do nonglobal variables default to a) auto b) register c) static
Why is c++ still used?
Difference between struct and class in terms of access modifier.
What are c++ variables?
Why c++ is created?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
What is the use of this pointer in c++?
Which function cannot be overloaded c++?