... //--- Negative values can not be stored in unsigned types The char type can contain both positive and negative values. int   in=2445777; Since the unsigned integer types are not designed for storing negative values, the attempt to set a negative value can lead to unexpected consequences. Start coding immediately in the browser IDE, Command line access to Mbed tools and services, Industry standard TLS stack and crypto library, Dozens of leading companies trust Mbed OS, Bring your services to over 450,000 developers, Build your Mbed projects with development boards for Arm Cortex processors and MCUs, Modules include a MCU, connectivity and onboard memory, making them ideal for designing IoT products for mass production, The component database hosts libraries for different sensors, actuators, radios, inputs, middleware and IoT services, Learn about hardware support for Mbed, as well as the Mbed Enabled program, which identifies Mbed compatible products, Reference designs, schematics and board layouts to develop production hardware and Mbed-compatible development boards. Thanks for this! On Windows, the representation of "long double" may be increased to 10 bytes by use of the command line switch /Qlong-double. Alex Louden # 07 Sep 2010. The int and long are primitive data types; the int takes 32 bits or four bytes of memory while long takes 64 bits or 8 bytes.. int example long example. And range can further be increased for 0