What are the differences between a struct in C and in C++?

Answer Posted / shakti singh khinchi

In C, structures does not support "virtual" mechanism like
virtual functions whereas C++ structures supports virtual
mechanism like classes.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why main function is special in c++?

861


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

2009


What is c++ in english?

806


What is void pointer in c++ with example?

791


Explain stack unwinding.

824


What is object file? How can you access object file?

818


What is dynamic and static typing?

874


Is c++ used anymore?

824


What is the best c++ compiler?

775


What is a v-table?

878


How the virtual functions maintain the call up?

808


Where can I run c++ program?

799


Why null pointer is used?

765


In what situations do you have to use initialization list rather than assignment in constructors?

820


What are separators in c++?

813