Перейти к основному содержанию
Zoro
Вопросы
Таймер
Резервное копирование
Главная
/
♾️ C++
/
Вопросы 2
C++:
What are the main differences between C and C++?
🎯
Режим фокуса
2
♾️
C++
🌱 junior
Снять отметку
What are the main differences between C and C++?
C++
is a superset of C with additional features.
C:
Procedural language.
No classes/objects.
Manual memory management (malloc/free).
No function overloading.
No templates.
No exceptions.
C++:
Multi-paradigm (procedural, OOP, generic, functional).
Classes and objects.
new/delete operators.
Function overloading.
Templates (STL).
Exceptions (try/catch).
Namespaces.
References (&).
RAII (Resource Acquisition Is Initialization).
Больше вопросов по C++
What is C++ and what is it used for?
What is the difference between struct and class in C++?
What are pointers and references in C++?
What is the difference between new and malloc?
What is the difference between stack and heap memory?
What is C++ and what is it used for?
What is the difference between struct and class in C++?
Назад к категории C++