Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- struct S1
- {
- };
- struct S2
- {
- int a[0];
- };
- int main() {
- std::cout << sizeof(S1) << std::endl;
- std::cout << sizeof(S2) << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement