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
zero size std::array parameter
Not an overflow
define_xml_tags
C++ standard library formatted input hexadecimal float without prefix or exponent test case
dharmesh
Use std::is_base_of to subset STL container contents.
MyCodeWindows
MSVC bug in __fastcall implementation !!!
success
map_file_mangling