Output float and hexadecimal : Hex « Data Type « C / ANSI-C






Output float and hexadecimal


#include <stdio.h>

int main(void)
{
  printf("%x %#x\n", 10, 10);
  printf("%*.*f", 10, 4, 1234.34);

  return 0;
}


  

           
       








Related examples in the same category

1.Reading hexadecimal and octal values
2.Read and output Signed octal
3.Output Hex