summaryrefslogtreecommitdiff
path: root/4p34.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-22 20:56:13 +0200
committerOskar <[email protected]>2024-08-22 20:56:13 +0200
commit1208defdbc457a89c0d9aea3b8faf86b8492761f (patch)
treedf04141a05d788074030111b01735e65c7655c0b /4p34.cpp
parent5e6954e218455d912686f9adda25ddcd09ca267c (diff)
more
Diffstat (limited to '4p34.cpp')
-rw-r--r--4p34.cpp32
1 files changed, 32 insertions, 0 deletions
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 <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;
+}