diff options
-rw-r--r-- | bool_problems.c | 4 | ||||
-rw-r--r-- | intfloat.c | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/bool_problems.c b/bool_problems.c new file mode 100644 index 0000000..2c30c31 --- /dev/null +++ b/bool_problems.c @@ -0,0 +1,4 @@ +int main(void) +{ + return sizeof(_Bool); +} diff --git a/intfloat.c b/intfloat.c new file mode 100644 index 0000000..1350866 --- /dev/null +++ b/intfloat.c @@ -0,0 +1,9 @@ +#include <stdio.h> + +int main(int argc, char **argv) +{ + float f = 0.12372642183; + int i = f; + printf("%f %d\n", f, i); + return 0; +} |