From 1208defdbc457a89c0d9aea3b8faf86b8492761f Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 22 Aug 2024 20:56:13 +0200 Subject: more --- 4p34.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 4p34.cpp (limited to '4p34.cpp') diff --git a/4p34.cpp b/4p34.cpp new file mode 100644 index 0000000..81bbf4c --- /dev/null +++ b/4p34.cpp @@ -0,0 +1,32 @@ +#include + +/* + * + * 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; +} -- cgit v1.2.3