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
What is this pointer in c++?
What are the different types of polymorphism in c++?
How would you implement a substr() function that extracts a sub string from a given string?
Mention the ways in which parameterized can be invoked. Give an example of each.
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is singleton class in c++?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
which of the following is not an secondary constant a) array b) real c) union
What do you mean by ‘void’ return type?
Mention the ways in which parameterized can be invoked.
What is a tuple c++?
How would you differentiate between a pre and post increment operators while overloading?
What are the advantage of using register variables?
What is called array?
What is the hardest coding language to learn?