Computer Science, asked by Krishy1866, 9 hours ago

If x is an integer variable x=7/2its return value is

Answers

Answered by akashkumar132103
0

Answer:

Its return value will be 3.

Explanation:

Because integer can store only integer value or value without decimal point.

And after solving 7/2 we get 3.5, but integer can't hold the floating point number(decimal point number) so .5 will not be stored/hold by integer. It will discard the .5 from the answer 3.5, it will only store 3.

Similar questions