hh format specifier | Language:Ada Assembly Bash C# C++ (gcc) C++ (clang) C++ (vc++) C (gcc) C (clang) C (vc) Client Side Clojure Common Lisp D Elixir Erlang F# Fortran Go Haskell Java Javascript Kotlin Lua MySql Node.js Ocaml Octave Objective-C Oracle Pascal Perl Php PostgreSQL Prolog Python Python 3 R Rust Ruby Scala Scheme Sql Server Swift Tcl Visual Basic Layout:Vertical Horizontal | #include <stdint.h> #include <stdbool.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <stdio.h> #include <inttypes.h> #include <errno.h> int main(int argc, char *argv[]) { printf("%2hhX\n", 250); uint8_t c[80] = {'A' , 'B' , 'C', 'D', 'E', 'F'}; printf( "%hhi", 300 ); int last = 0; sscanf((const char*)c, "%hhX:%hhX:%hhX:%hhX:%hhX:%hhX%n", c + 0, c + 1, c + 2, c + 3, c + 4, c + 5,&last); return 0; } | Show compiler warnings [ + ] Compiler args [ + ] Show input | | Compilation time: 0.13 sec, absolute running time: 0.14 sec, cpu time: 0.07 sec, memory peak: 3 Mb, absolute service time: 0,27 sec | FA 44 |