Math, asked by yashshekhada80, 4 months ago

If ‘a’ is an integer variable , the expression a=11/2; will stored ____________ value in ‘a’.​

Answers

Answered by presentmoment
0

Answer:

a= 11

Step-by-step explanation:

The answer is 11

Answered by DeenaMathew
0

The value stored in  the variable 'a' is 11

Detailed answer

The value provided to us is a=11/2 and the variable was declared as an integer.

  • So we all know that integers only store values that do not have a fractional part in them
  • So the compiler won't recognize the fractional part and would only print the integer value that is 11.
  • To store values that have the fractional part we have to use float as the variable.
  • Float is used to store floating-point data.
Similar questions