What is the difference between Class and Structure?
Answer Posted / deepica
in classes we can declare variables and functions while in structure we can have only functions.In classes we have ACCESS SPECIFIER,while in structures we dont have any.Ic classes no Keyword is used ,while in Structures STRUCT keyword is used.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What operators can you overload in c++?
What is near, far and huge pointers? How many bytes are occupied by them?
What is virtual destructor ans explain its use?
Explain the differences between list x; & list x();.
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
Is dev c++ free?
What is null and void pointer?
what is scupper?
How would you find out if a linked-list is a cycle or not?
Tell me can a pure virtual function have an implementation?
Explain how the virtual base class is different from the conventional base classes of the opps.
Explain the uses oof nested class?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
Do you know about C++ 11 standard?
What is a .h file c++?