Is structure can be inherited?




Answer Posted / mahan

struct has come into c++ from C. It enables to group together different elements of different types so that we can access them together. Basically it simplifies memory access. All members in a struct have their access as public.

Is This Answer Correct ?    1 Yes 0 No






Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c++ have string data type?

34


What is searching? Explain linear and binary search.

66


How the programmer of a class should decide whether to declare member function or a friend function?

73


Is c# written in c++?

18


Write a program which employs Recursion

85






What are the benefits of oop in c++?

38


What is different in C++, compare with unix?

71


What is the purpose of the "delete" operator?

44


State the difference between delete and delete[].

53


What is the meaning of string in c++?

42


What is a pointer with example?

39


Is it possible to use a new for the reallocation of pointers ?

67


What is the role of copy constructor in copying of thrown objects?

69


What is the protected keyword used for?

61


What is the difference between reference and pointer?

60