+ 9
Can you give me some examples of things we can do in a C program and not in C++??
I don't understand... Is there anything in C not in C++? //Except conio.h maybe...
15 Answers
+ 8
There is nothing in terms of "missing features" in C that you can't do in C++.
If anything, C++ has things C can't do, specifically classes. (C++ is also known as "C with classes.")
Edit: "new" is not something C is missing. "new" just allocates memory for a given object and returns a pointer to it. This can be done with "malloc" in C.
+ 7
@Krishna Teja Yeluripati
Sir, then there will be many such egs..., as many keywords and operators are not there in C, which are there in C++...
+ 7
I wanted the list of missing features...
+ 7
@Neen
Thank You!
+ 6
Please give me an answer, all C lovers?!!!
+ 5
Name a variable as "new".
+ 1
Question is "things we can do in C and not in C++"
Since C++ is superset of C (derived from C there is nothing that can be achieved logically using C but not using C++.
And there is no feature of C that is missing in C++.
+ 1
@Sandeep Sood
Even then people wish to use C in Code Playground...
Why?
+ 1
Since C is easier to learn and use than C++
+ 1
@Sandeep Sood
First you say there is nothing in C++ that cant be done in C.
Then you say C is easier. I agree.
But who asked C programmers to use C++ code?
They can simply type C codes in the C++ Playground and compile them, right?
Why do they still need a seperate support for C?
A SoloLearn tutorial only has basics...
They just need to change some things like malloc instead of new, FILE* instead of fstream, etc,etc...
So, the last question, if C features are there in C++ and there are more features, why do engineers still prefer C?
+ 1
embedded project, arduino programs.
+ 1
@Hung
Arduino Sketches are made using Arduino's own IDE, not any C Compiler...
And can't embedded projects be made using c++?
I can control 8086 using C++ as well as Raspberry PIs GPIO Pins...
+ 1
@ Kinshuk Vashisht
as already replied.
C is easier to learn and use than C++.
For applications in which OOP is not required why go in complexity of C++.
Using IDE of C++ to write code of C still means C is preferred.
+ 1
@Sandeep Sood
Ok, I got it.
Thank You!
+ 1
@Kinshuk Vashisht.
Welcome Bro !! âșâș