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
What are the advantage of using register variables?
What is #include iostream in c++?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What new()is different from malloc()?
What is the object serialization?
What is constructor in C++?
Does c++ vector allocate memory?
Why do we need pointers?
What is the use of :: operator in c++?
Why do we use string in c++?
What problems might the following macro bring to the application?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
How delete [] is different from delete?
What is c++ & why it is used?
What is a try block?