aboutsummaryrefslogtreecommitdiffstats
path: root/sizeofsize_t.c
diff options
context:
space:
mode:
Diffstat (limited to 'sizeofsize_t.c')
-rw-r--r--sizeofsize_t.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sizeofsize_t.c b/sizeofsize_t.c
new file mode 100644
index 0000000..1284839
--- /dev/null
+++ b/sizeofsize_t.c
@@ -0,0 +1,7 @@
+#include<stdio.h>
+#include<stdlib.h>
+
+int main ( int argc, char *argv[] ) {
+ int size = sizeof(size_t);
+ printf("The size of size_t is %dB or %db\n", size, size * 8);
+}