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

Answer Posted / jyoti

C++ was based on C and retains a great deal of the
functionality. C++ does not retain complete source-level
compatability with C. There are a few gotchas for C++
programmers trying to write C code, and C programmers trying
to compile with a C++ compiler.

Is This Answer Correct ?    8 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by delegate? Can a user retain delegates?

530


What is friend class in c++ with example?

504


Why iomanip is used in c++?

643


What is difference between class and function?

587


Can I learn c++ without learning c?

566






Describe the advantages of operator overloading?

577


What is ostream in c++?

578


Explain this pointer?

587


What is the difference between passing by reference and passing a reference?

562


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

609


What do you mean by stack unwinding in c++?

732


What is the maximum combined length of command line arguments including the space between adjacent arguments?

596


Why Pointers are not used in C++?

624


Who calls main function?

589


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

611