How to print uint64_t as hex value in C

1 Answer

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

int main(void)
{
    // 64 bit 
  
    uint64_t  n = 0x88776655443A2C1B;
  
    printf("0x%" PRIX64 "\n", n);
}


  
/*
  
0x88776655443A2C1B
  
*/
  

 



answered Jan 3, 2025 by avibootz

Related questions

1 answer 194 views
2 answers 237 views
1 answer 268 views
268 views asked May 7, 2021 by avibootz
1 answer 229 views
1 answer 216 views
1 answer 228 views
2 answers 215 views
...