Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Zero length array as a class member
#include <iostream> struct Foo { int zeroLengthArray[]; }; int main() { Foo foo; std::cout << "Address offset of zeroLengthArray: " << (char*)&foo.zeroLengthArray - (char*)&foo << std::endl; }
run
|
edit
|
history
|
help
0
3
hangman
#10.1
😊
Visual C++ template instantiation
Attribute of qi parsers
div64 inline asm
C++ instantiation
bool behaviour (convertion/promotion) for logical and artihmetic operators
empty base bug