+ 1
What is the difference between c c++ andc#
7 Answers
+ 2
Okk now I understood...
+ 1
Thank you
+ 1
Just so you know, they all have differwnt purposes. C does not support classes, sp its not object oriented. C is mainly used in the developmebt if compilers or operating systems. C++ is an object oriented language that allows you to handle memory allocations. C# is object oriented but the memory is auto handled. C# allows reflection so it can be dynamically typed or statically while c++ is just static (unless your a wizard). But performance gets slower and slower with the more and more features. They are all actually very different languages, but syntactically similar
+ 1
The original C programming language is not object-oriented, which is the most significant difference between the two. C is whatâs called a âproceduralâ programming language, while C++ is a hybrid language thatâs a combination of procedural and object-oriented.
C++ was built as an extension of C, which means it can run most C code. The reverse isnât true thoughâC canât run C++ code.
As an object-oriented language, C++ supports polymorphism, encapsulation, and inheritance, while C does not.
In C, data and functions are âfree entities,â which means you can manipulate them with outside code. Since C++ encapsulates data and functions together into a single object, those data structures and operators are hidden to outside code.
C++ uses the namespace, which organizes code into logical groups and to prevent name collisions. Name collisions can occur when your code base includes multiple libraries. C does not use a namespace.
C uses functions for input and output, whereas C++ uses objects for input and output.
C++