can you tell me
How to use printf to search for hexadecimal and octal values 255?
Many thanks.
Try using the specifier oandx printf
o
x
printf
printf("%d %o %x",255,255,255); // prints 255 377 ff
If you want to do this on the shell, you can do:
$ printf "%o\n" 255 377 $ printf "%x\n" 255 ff $
Try the following:
printf("%x", 255); /* print hex representation of decimal 255 */ printf("%o", 255); /* print octal representation of decimal 255 */
Source: https://habr.com/ru/post/1763730/More articles:Subversion Visualization Tree - svnFlashDevelop - specify an HXML file? - haxeC # WPF Binding Code - Why Does This Simple Example Not Work? - c #Ли LINQ пропустить и принять достойную производительность? - linqhtml 5 video tag file without extension - html5Mysql time queries - mysqlClear NSURLConnections hangs when controller is down - memory-managementHow to override the "selected state" image in MKAnnotationView? - iphoneHow to get missed calls on Windows Phone 7 - windows-phone-7Могу ли я подключить именованный объект к ссылке в Rails? - ruby-on-railsAll Articles