summaryrefslogtreecommitdiff
path: root/c,cc/type_size.c
diff options
context:
space:
mode:
Diffstat (limited to 'c,cc/type_size.c')
-rw-r--r--c,cc/type_size.c12
1 files changed, 12 insertions, 0 deletions
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 <stdio.h>
+
+
+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;
+}
+