How to print hex value of 255 in Unix?
Try this:
printf("%x", 255); /* print hex representation of decimal 255 */printf("%o", 255); /* print octal representation of decimal 255 */
Try this:
printf("%x", 255); /* print hex representation of decimal 255 */printf("%o", 255); /* print octal representation of decimal 255 */