+ 1

What is the difference between c c++ andc#

20th Jan 2022, 7:35 AM
Kothai D
Kothai D - avatar
7 Answers
+ 2
Okk now I understood...
20th Jan 2022, 9:41 AM
Kothai D
Kothai D - avatar
+ 1
Thank you
20th Jan 2022, 12:19 PM
Kothai D
Kothai D - avatar
+ 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
21st Jan 2022, 10:38 PM
Casen
Casen - avatar
+ 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++
22nd Jan 2022, 4:26 AM
TIRTH
TIRTH - avatar