Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Hostgator 1 Penny

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Distribute your Resume to 500+ Job Boards & Recruiters


7,369 questions

10,368 answers

573 users

How to declare fixed-width integer type in C

1 Answer

0 votes
#include <stdio.h>
#include <stdint.h>

int main(void) 
{
    uint8_t ui8 = 8;  // 8-bits 

    uint32_t ui32 = 32; // 32-bits 

    int64_t i64 = 64;  // 64 bit 
    
    printf("ui8 = %u\n", ui8);
    printf("ui32 = %I32d\n", ui32);
    printf("i64 = %I64d\n", i64);
    
    return 0;
}
    
/*
run:
 
ui8 = 8
ui32 = 32
i64 = 64

*/

 




answered Aug 24, 2017 by avibootz
...