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,938 questions

51,875 answers

573 users

How to use uint64_t in C

2 Answers

0 votes
#include <stdio.h>
#include <inttypes.h>
 
int main() {
    // unsigned 64-bit integer
    uint64_t n = 1844674407370955161; 
     
    printf("%" PRIu64, n);
}
  
 
 
  
/*
run:
  
1844674407370955161
  
*/

 



answered Mar 3, 2022 by avibootz
0 votes
#include <stdio.h>
#include <stdint.h>
 
int main() {
    // unsigned 64-bit integer
    uint64_t n = 1844674407370955161; 
     
    printf("%llu", n);
}
  
 
 
  
/*
run:
  
1844674407370955161
  
*/

 



answered Mar 3, 2022 by avibootz

Related questions

1 answer 118 views
118 views asked Mar 3, 2022 by avibootz
1 answer 73 views
73 views asked Jan 3, 2025 by avibootz
1 answer 170 views
170 views asked May 7, 2021 by avibootz
1 answer 69 views
69 views asked Apr 7, 2025 by avibootz
...