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
qwerty
an awesome question of basic graph traversal (786A)
Expected types
project
Bitset Operators
Project Euler - 113
ttt
UsingAlgorithm
BinTree playground
MyStack