From 258e1b92ebbfdebefabc120969ab87c3d8b75c3d Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 15 Jun 2014 03:50:12 +0200 Subject: old c,cc examples --- c,cc/type_size.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 c,cc/type_size.c (limited to 'c,cc/type_size.c') diff --git a/c,cc/type_size.c b/c,cc/type_size.c new file mode 100644 index 0000000..18edb1f --- /dev/null +++ b/c,cc/type_size.c @@ -0,0 +1,12 @@ +#include + + +int main(void) +{ + printf("char: %d\n", sizeof(char)); + printf("int: %d\n", sizeof(int)); + printf("float: %d\n", sizeof(float)); + printf("double: %d\n", sizeof(double)); + return 0; +} + -- cgit v1.2.3