Return Value of A
If A is a float variable and the value of A = 5/2, what value will be returned?
Answers
Answered by
1
2.5 will be returned... nothing else is possible...
Answered by
1
2.000000 is returned:
Explanation:
- In a c or c++ or java language, when the A variable will be declared as a float and the value of A is returned after evaluated the expression "A=5/2", then the above-described value is printed.
- It is because the A variable is a float type variable and the statement is a type of integer.
- It is because when the user writes "A=5.0/2", then it will give the result as "2.500000".
Learn more :
- C-Program : https://brainly.in/question/637147
Similar questions