Tested the use of sizeof

This commit is contained in:
2015-10-14 03:03:13 +02:00
parent 3d602be8f5
commit 624a784be7
2 changed files with 41 additions and 0 deletions

12
misc/sizes.c Normal file
View File

@@ -0,0 +1,12 @@
#include <stdio.h>
int main()
{
int a;
int b;
char c[20];
printf("%d %d", sizeof(a), sizeof(c));
b = sizeof(c);
printf("\n%d\n", b);
}