C ,C++ , C# වල වෙනස මොකක්ද ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
What is C?
Photo credit to Aptech Malviya Nagar
We will start with the C programming language because it’s the oldest and most widely used of the three. Dennis Ritchie invented it in 1972 and then published in 1978. Ritchie designed it for the development of a new version of Unix.
Up until that point, the Unix operating system used assembly language, which is the lowest level of programming readable by a computer. The invention of C revolutionized programming and operating systems forever. The rest, as they say, is history.
C is still a low-level programming language, which performs almost as efficiently as assembly code. It provides base-level access to memory, and it requires very little runtime support.
Despite being published 40 years ago, C is still the most widely used programming language of all time. Programmers still use it in operating systems, kernel-level software, hardware drivers, and applications that need to work with older code.
Most old-school programmers will suggest that C is the best programming language to start with because so many newer languages build off of it. It may also offer some security benefits because of its age. The pool of people using it is smaller, making it a less desirable target for hackers.
What is C++?
C++ was developed as an extension of the C programming language. It was created by a Ph.D. student in Denmark named Bjarne Stroustrup. His goal was to enhance C and add object-oriented programming capabilities without sacrificing speed or efficiency.
C++ is considered an intermediate-level programming language, as it builds upon the low-level C language but has more advanced capabilities.
Since the initial publication of C++ in 1985, it has become another extremely prolific programming language. It’s used alongside C in the development of operating systems but also sees use in high-profile server and PC software.
It’s a lot easier to understand C++ if you already have a solid foundation in the C programming language; however, you can still learn C++ as your first language if you want to jump right into object-oriented programming.
What is C#?
Photo credit to Pinterest
C# (pronounced “C Sharp”) is a high-level, object-oriented programming language that is also built as an extension of C. It was developed by a team at Microsoft lead by Anders Hejlsberg in 2002. It’s based in the .NET framework, but its backbone is still clearly the C language.
C# compiles into byte-code, rather than machine code. That means it executes on a virtual computer that translates it into machine code on the fly. It adds garbage collection, uninitialized variable checking, bound checking, and type checking capabilities to the base C code.
C# typically sees use in internal or enterprise applications, rather than commercial software. It’s found in client and server development in the .NET framework.
While C# is the most technically complicated of the three languages, its syntax is less error-prone than C or C++ and can be learned relatively quickly.
Can you take me summary?
While C++ is an object-oriented language, C# is considered a component-oriented programming language. … C++ compiles into machine code, while C# compiles to CLR, which is interpreted by ASP.NET. C++ requires you to handle memory manually, but C# runs in a virtual machine which can automatically handle memory management.
Greate. Thanks for your information❤️
❤️
😊❤
මට ආපහු පිලිතුරු දෙන්න ඔනෙ නැ මේ දීල තියෙන්නෙ සුපිරියටම 😊❤
thanks
❤️
C# has a lot of overhead and libraries included before it will compile. C++ is much more lightweight. Performance: C++ is widely used when higher level languages are not efficient. C++ code is much faster than C# code, which makes it a better solution for applications where performance is important
While C++ is an object-oriented language, C# is considered a component-oriented programming language
C# has a lot of overhead and libraries included before it will compile. C++ is much more lightweight. Performance: C++ is widely used when higher level languages are not efficient. C++ code is much faster than C# code, which makes it a better solution for applications where performance is important
While C++ is an object-oriented language, C# is considered a component-oriented programming language
Greate. Thanks for your information❤️
මෙම භාෂා දෙක අතර ඇති ප්රධාන වෙනස නමයි. C යනු C මූලික භාෂාව ලෙසද C # C තියුණු ලෙසද හැඳින්වේ. අනෙක් වෙනසෙහි පදනම එයයි. C මේ සියල්ල අතර පළමු භාෂාව වන අතර එය භාෂාවේ ප්රමිතිය ලෙස සැලකේ. විවිධ යෙදුම් සඳහා භාවිතා කළ හැකි මූලික අංග තිබියදී එය භාවිතා කිරීම සරල ය.
😊