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

Where can I run c++ program?

601


Define a constructor?

588


What do you mean by friend class & friend function in c++?

620


What are the classes in c++?

636


Is swift better than c++?

538






Why do we use constructor?

595


What is a set in c++?

531


What are the different types of polymorphism in c++?

586


C is to C++ as 1 is to a) What the heck b) 2 c) 10

638


Which is better c++ or java?

562


What are c++ variables?

535


Write a program in C++ for Fibonacci series

659


How to declaring variables in c++?

659


What is & in c++ function?

588


Why is "using namespace std;" considered bad practice?

648