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 108 views
2 answers 110 views
1 answer 183 views
183 views asked May 7, 2021 by avibootz
1 answer 140 views
1 answer 119 views
1 answer 140 views
2 answers 106 views
...