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
ADL of operator expression & unqualified function call
std::is_same doesn't check for calling convention
print adapted struct
Why is vsnprintf Not Writing the Same Number of Characters as strncpy Would?
Hangman
Copy elision sample modern C++
Template
hex manip
MSVC ignoring unknown attributes
UINT64 to UINT truncation