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 a tuple c++?
What is the oldest programming language?
Can you use the function fprintf() to display the output on the screen?
How do you clear a set in c++?
Define a constructor?
What is nested class in c++?
How can I learn c++ easily?
Explain the use of this pointer?
Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c
How does a C++ structure differ from a C++ class?
What is general format for a prototype?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
What is the size of a vector?
What is implicit conversion/coercion in c++?
What is a c++ object?