+ 1

Types of values (C++)

I am wondering what is the difference between values like double, long, float, and so on. I am wondering as well what are other values types I should be aware of. Thank you for any advise given.

24th Jun 2018, 11:00 AM
Bradley
2 Antworten
+ 2
float cannot store larger values like 56.79272881819 so double & long increases the size of variable according to your need so that it can store larger values.
24th Jun 2018, 12:33 PM
Rahul Sahani
Rahul Sahani - avatar
- 1
No difference. Someone likes to write like this, to someone else. It is desirable to write within the same program in the same way that the reader is not asked the same question;)
24th Jun 2018, 11:11 AM
Paswer World
Paswer World - avatar