Output same value by different printf parameters : Formatted Output Hex « Console « C / ANSI-C






Output same value by different printf parameters

Output same value by different printf parameters
  
#include <stdio.h>

int main(void)
{
  printf("%d %o %x %X\n", 100, 100, 100, 100);
  printf("%e %E\n", 100.231, 100.231);

  return 0;
}


           
       








Related examples in the same category