Add sizeof examples

This commit is contained in:
Minseong Jang
2022-01-25 21:19:01 +09:00
parent 4902bd6d9f
commit 75138c5ec2
6 changed files with 247 additions and 0 deletions

6
examples/c/sizeof2.c Normal file
View File

@@ -0,0 +1,6 @@
int main() {
char a = 42, b = 5;
long c[10];
return sizeof(a) == 1 && sizeof(a + b) == 4 && sizeof(c) == 80;
}