I'm new in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

I'm new in c++

Please i need more explanation on how to declare a variable in c++

13th Jun 2021, 10:00 PM
Yusufiabichi
Yusufiabichi - avatar
1 Answer
+ 2
bool either value true or false. 2 char Typically a single octet (one byte) 3 int the natural size of integer for the machine. 4 float A single-precision floating-point value. 5 double A double-precision floating-point value. 6 void Represents the absence of type. DATa TYPE DECLEARATION: int i, j, k; char c, ch; float f, salary; double d;
14th Jun 2021, 1:52 AM
Abhishek Kumar
Abhishek Kumar - avatar