What is the difference between Class and Structure?
Answer Posted / lucky
1) classes can have data member as well as member function but structure is a data type which can have data member only.
| Is This Answer Correct ? | 40 Yes | 31 No |
Post New Answer View All Answers
Is it possible to provide special behavior for one instance of a template but not for other instances?
Explain pass by value and pass by reference.
Explain the concept of memory leak?
How do you clear a buffer in c++?
What gives the current position of the put pointer?
What is lambda expression c++?
How compile and run c++ program in turbo c++?
Explain terminate() function?
What are the 4 types of library?
How would you differentiate between a pre and post increment operators while overloading?
Differentiate between C and C++.
What is the difference between while and do while loop? Explain with examples.
What is a virtual destructor? Explain the use of it?
What are the differences between new and malloc?
What is a local variable?