Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,950 questions

51,892 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

Related questions

2 answers 127 views
2 answers 164 views
2 answers 131 views
2 answers 153 views
1 answer 173 views
...