Is there something we can do in C but not in C++?
Declare variable names that are keywords in C++ but not C.
Answer Posted / ruth
Aside from a few minor differences, there's nothing C can
do that C++ can't. About the only things I can think of are:
int foo = Something();
int array[ foo ]; // C++ can't do this, but C can IIRC
Of course C++ provides alternatives to do the same thing:
vector<int> array(foo); // similar code in C++
C is more friendy for making external libraries. A DLL
compiled in C will likely work in any C/C++ program made in
any other C/C++ compiler. Whereas DLLs made with C++ often
only work in C++ programs made in the same C++ compiler
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Differentiate Source Codes from Object Codes
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Explain how to reverse singly link list.
What are pointers?
Explain Basic concepts of C language?
How reliable are floating-point comparisons?
difference between object file and executable file
Explain what is page thrashing?
What does c mean?
Why we use void main in c?
When should the const modifier be used?
write a c program for swapping two strings using pointer
how to find anagram without using string functions using only loops in c programming
What is the advantage of an array over individual variables?
What is the difference between union and structure in c?