blob: 81bbf4c3f05309ea4fccb69234f8bd7715ec13db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include <iostream>
/*
*
* 4.34
*
*
*/
bool flag;
short sval;
int ival;
long lval;
float fval;
char cval;
unsigned short usval;
unsigned int uival;
unsigned long ulval;
double dval;
int main () {
if (fval) {
// Converted to bool
}
dval = fval + ival; // ival converted to float, then both converted to double
if(dval + ival * cval) { // cval converted to intm ival and cval converted to double
}
return 0;
}
|