Computer Science, asked by kanishka2006akms, 10 months ago

Assign the value of pie(3.142857....) to a variable with requisite data type .

Answers

Answered by xMaNaSx
6

..The double datatype and float datatype is used for storing the decimal value in the programming language .

..The float is used to storing the result up to 4 decimal point value while if we want to store the decimal value more then 4 point value then we used double datatype .

..we used float keyword for declaring the float datatype and double keyword is used for declaring double datatype .

MORE::

Each variable in C has an associated data type. Each data type requires different amounts of memory and has some specific operations which can be performed over it. Let us briefly describe them one by one:

Following are the examples of some very common data types used in C:

char:The most basic data type in C. It stores a single character and requires a single byte of memory in almost all compilers.

int:As the name suggests, an int variable is used to store an integer.

float:It is used to store decimal numbers(numbers with floating point value) with single precision.

double:It is used to store decimal numbers (numbers with floating point value) with double precision.

Read more on Brainly.in - https://brainly.in/question/1707067#readmore

Answered by pk030833
14

Answer:

the answer is double type

Similar questions