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 116 views
2 answers 121 views
1 answer 185 views
185 views asked May 7, 2021 by avibootz
1 answer 147 views
1 answer 127 views
1 answer 142 views
2 answers 121 views
...