C vs C++: Understanding the Differences [message #1858966] |
Wed, 03 May 2023 08:53  |
Eclipse User |
|
|
|
Hello everyone,
I'm looking for help in understanding the differences between C and C++. I'm fairly new to programming and I'm having trouble understanding the distinctions between these two languages. I went through online resources but couldn't get it.
I'm familiar with the basics of C++, but I'm having trouble determining how it differs from C. Is there any documentation that explains the differences between the two languages in a clear and concise way? I'm especially interested in how C++ differs in terms of syntax, type safety, memory management, and other related topics.
Thank you in advance for any help you can provide.
|
|
|
Re: C vs C++: Understanding the Differences [message #1859212 is a reply to message #1858966] |
Fri, 19 May 2023 10:48  |
Eclipse User |
|
|
|
C is a procedural language, C++ is based of objects and is why there are classes in C++ and none in C. C has functions only, C++ also has them. The syntax of C is embedded in C++ so a C program will compile and run in a C++ IDE. An object oriented language will take a lot more of learning to use it properly, but everything you learn in C will be useful when you transition to C++. Also when you get in OOP you will have to learn UML and design patterns. Another discussion.
syd/wt1v
|
|
|
Powered by
FUDForum. Page generated in 0.04176 seconds