What are the differences between a struct in C and in C++?
Answer Posted / anoop chaurasiya
c structure does not support the concept of data hiding but
in approach of c++ class support the concept of data hiding.
Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
Why is it called c++?
What does new in c++ do?
What is an overflow error?
What are formatting flags in ios class?
Who discovered c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What are the five basic elements of a c++ program?
Which is most difficult programming language?
What do you mean by friend class & friend function in c++?
What is the C-style character string?
What are the various compound assignment operators in c++?
What is general format for a prototype?
Explain how an exception handler is defined and invoked in a Program.
What is a v-table?
How long it will take to learn c++?