Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Size of data type test
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//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); }
g++
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
Compilation time: 0.44 sec, absolute running time: 0.14 sec, cpu time: 0.07 sec, memory peak: 3 Mb, absolute service time: 0,58 sec
edit mode
|
history
|
discussion
Size of data: 510