Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- void setup()
- {
- Serial.begin(115200);
- Serial.println("\n ESP32 ");
- // Serial.println("\n ESP8266 ");
- // Serial.println("\n Arduino ");
- Serial.print(" TIPO "); Serial.println("Tamanho");
- Serial.print(" bool: "); Serial.print(sizeof(bool)); Serial.println(" bit");
- Serial.print(" char: "); Serial.print(sizeof(char)); Serial.println(" bytes");
- Serial.print(" wchar_t: "); Serial.print(sizeof(wchar_t)); Serial.println(" \"");
- Serial.print(" char16_t: "); Serial.print(sizeof(char16_t)); Serial.println(" \"");
- Serial.print(" char32_t: "); Serial.print(sizeof(char32_t)); Serial.println(" \"");
- Serial.print(" short: "); Serial.print(sizeof(short)); Serial.println(" \"");
- Serial.print(" int: "); Serial.print(sizeof(int)); Serial.println(" \"");
- Serial.print(" long: "); Serial.print(sizeof(long)); Serial.println(" \"");
- Serial.print(" long long: "); Serial.print(sizeof(long long)); Serial.println(" \"");
- Serial.print(" float: "); Serial.print(sizeof(float)); Serial.println(" \"");
- Serial.print(" double: "); Serial.print(sizeof(double)); Serial.println(" \"");
- Serial.print(" long double: "); Serial.print(sizeof(long double));Serial.println(" \"");
- }
- //---------------------------------------------------------------------------
- void loop()
- {
- }
- //Tamanho dos "types"
- //
- // ESP32
- // TIPO Tamanho
- // bool: 1 bit
- // char: 1 bytes
- // wchar_t: 2 "
- // char16_t: 2 "
- // char32_t: 4 "
- // short: 2 "
- // int: 4 "
- // long: 4 "
- // long long: 8 "
- // float: 4 "
- // double: 8 "
- // long double: 8 "
- //
- //
- // ESP8266
- // TIPO Tamanho
- // bool: 1 bit
- // char: 1 bytes
- // wchar_t: 2 "
- // char16_t: 2 "
- // char32_t: 4 "
- // short: 2 "
- // int: 4 "
- // long: 4 "
- // long long: 8 "
- // float: 4 "
- // double: 8 "
- // long double: 8 "
- //
- //
- // Arduino
- // TIPO Tamanho
- // bool: 1 bit
- // char: 1 bytes
- // wchar_t: 2 "
- // char16_t: 2 "
- // char32_t: 4 "
- // short: 2 "
- // int: 2 "
- // long: 4 "
- // long long: 8 "
- // float: 4 "
- // double: 4 "
- // long double: 4 "
- //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement