Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Size of data type test
//g++ 5.4.0 #include <iostream> #include <array> #include <limits> typedef uint8_t uint8; typedef uint16_t uint16; struct InterprocessConfigurationData { InterprocessConfigurationData() = default; //uint16 m_network_ports_allocated[UCHAR_MAX]; std::array<uint16, std::numeric_limits<uint8>::max()> m_network_ports_allocated; }; int main() { std::cout << "Size of data: " << sizeof(InterprocessConfigurationData); }
run
|
edit
|
history
|
help
0
sa
Test 14(2020)
iviewb
GCC compiler bug (should output 0 1)
Test 8(2020)
Clementina
PointSum
temporaries and move constructor
Primality Test | Fermat
Hello