% u \ Used to print format statements, such as printf, sprint, vsprintf, fprintf, etc.
Example:
printf("%u\n ", 19);
The output is
19 & lt; CR & gt
& ltCR & gt is also the broken line sign.
Extended data
Defining unsigned integers in c language
Classification of int; Eger variable: basic integer: int short integer: shortint;; Long integer: longint adds the modifier unsigned to the above three categories, specifying an "unsigned number". If the modifier signed is added, specify "signed number"; If neither signed nor unsigned is specified, it means it is signed. Examples are as follows:
What is the output of the following code?
unsignedinta= 1,intb =-2;
intc =-2;
cout & lt& ltb & lt& ltendl
if(a+c & gt; 0)
cout & lt& lta+b & lt; & ltendl