diff options
author | EliteTK <tomasz.kramkowski@gmail.com> | 2014-05-28 00:46:53 +0100 |
---|---|---|
committer | EliteTK <tomasz.kramkowski@gmail.com> | 2014-05-28 00:46:53 +0100 |
commit | 6e454d2d74261f3f054fb73cb8bdf8ee8df67a06 (patch) | |
tree | ec44e7dd6a3150e18cecb8602e94551cbcca2076 | |
parent | a530bad7a6ea2778129db0dc26c446d9f6df6ddd (diff) | |
download | c-stuff-6e454d2d74261f3f054fb73cb8bdf8ee8df67a06.tar.gz c-stuff-6e454d2d74261f3f054fb73cb8bdf8ee8df67a06.tar.xz c-stuff-6e454d2d74261f3f054fb73cb8bdf8ee8df67a06.zip |
More stuff.
-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; +} |