Online course

C++

TRAINING

1) What are the data types in C++ which let you to keep decimal numbers in memory?

2) Can we use int data type to keep integer numbers greater than 231 and lower than 263?

3) What is the proper data type to keep in memory a value with more than 7 decimals?

Training Solutions

1) float, double, long double

2) No, but we can use instead long long int

3) double or long double