Variable In C++ || Trash Coding

68 Просмотры
Издатель
------------------ **C++ FOR BEGINNERS**------------------

C++ is a programming language
It is mainly used to create computer programs

---

Today we will see about variable in C++

There are different types of variable like:

- int : store integer without decimal point
- float: store floating points numbers
- char : store single character such as "A", 'a'
- string: store text like "hello world"
- bool: store values with two states like "true", "false"

Syntax to declare a variable

`type variableName = value`
Категория
Язык программирования C++
Комментариев нет.