mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 00:00:29 +09:00
Add sizeof examples
This commit is contained in:
1 parent
4902bd6d9f
commit
75138c5ec2
6 files changed
+247
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user