Tested the use of sizeof
This commit is contained in:
12
misc/sizes.c
Normal file
12
misc/sizes.c
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user