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

What are c++ tokens?

691


What is code reusability in c++?

776


What is pure virtual function?

716


How are the features of c++ different from c?

689


What is a tuple c++?

637






What is the difference between #import and #include in c++?

692


List the merits and demerits of declaring a nested class in C++?

691


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

677


What is endl?

723


List different attributes in C++?

731


Difference between a homogeneous and a heterogeneous container

762


What is the output of the following program? Why?

718


What is a singleton c++?

657


Write a function to find the nth item from the end of a linked list in a single pass.

653


What does new in c++ do?

650