5. Give the data type and type of conversion of the following expressions.
i) char c; float f: double d;
c*fd:
ii) int i, j; float f: double d;
(int)(i+1)/(*d):
Please answer me the question fast as you can
PLEASE LET THE ANSWER BE CORRECT
Answers
Answered by
1
Question:-
Give the data type and type of conversion of the following expressions.
Solution:-
Question 1.
Given,
char c; float f; double d
Resultant data type
> char + float + double
> float +double
> double (Implicit Type Casting)
Question 2.
int i,j; float f; double d;
(int)(i+1)/(f*d)
Resultant data type
> int
Hence, the resultant data type is int.
(implicit type casting)
Similar questions
Math,
3 months ago
English,
3 months ago
English,
6 months ago
Social Sciences,
6 months ago
Computer Science,
11 months ago
Biology,
11 months ago
Math,
11 months ago