Physics, asked by faisusail62, 4 months ago

give any two examples for double​

Answers

Answered by akhaykumarsingh
0

Answer:

this is the answer no.d

Attachments:
Answered by samarthpawar48
0

Answer:

In C++, both float and double data types are used for floating-point values. Floating-point numbers are used for decimal and exponential values. For example,

// creating float type variables

float num1 = 3.0f;

float num2 = 3.5f;

float num3 = 3E-5f; // 3x10^-5

// creating double type variables

double num4 = 3.0;

double num5 = 3.5;

double num6 = 3E-5; // 3x10^-5

We must add the suffix f or F at the end of a float value. This is because the compiler interprets decimal values without the suffix as double.

Similar questions