Answer» C++C++ is a general purpose, cross-platform, high level, object-oriented programming language which was created by Bjarne Stroustrup as an extension of the C programming language. Applications of C++ :- - It can be used to design video games, which are of high performance because, In C++, you can manually manage the memory.
- It is used to develop Operating Systems. For Example, Some parts of Apple OS, Microsoft Windows OS are written in C++.
- It is used to create Graphical User Interfaces, It has got a TON of libraries so.
- C++ has a GOOD control over the hardwares So it is also used to program Embedded systems like smartwatches, medical equipment systems, calculators, e.t.c,
Data Types in C++ :- There are 8 PREDEFINED data types in C++: - int : Refered to as Integer, has size of 2 or 4 BYTES as the system architecture.
- float : Floating point, used to store decimal number, usually has size of 4 bytes.
- double : Similar to floating point but with more precision. Has size of 8 bytes.
- char : A single letter, has size of 1 byte.
- wchar_t : wide character, has size of 2 bytes.
- bool : Conditional data type, has only two values true or false, Has size of 1 byte.
- void : empty data type or none, has size of 0 byte.
|