Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - The output of plastic data in C language is %d Can it be written as %i, that is, in the form of printf"%in"a?
The output of plastic data in C language is %d Can it be written as %i, that is, in the form of printf"%in"a?
Can't change it at will.

d? Signed 10 decimal integer?

Me? Signed 10 decimal integer?

o? Unsigned octal integer?

u? Unsigned 10 decimal integer?

x? Unsigned 16 hexadecimal number, expressed in lowercase abcdef.

x? Unsigned 16 hexadecimal number, expressed in uppercase ABCDEF.

f? Floating point number?

E/e? Floating point number in scientific representation format?

g? Use the total number of digits in %f and %e to represent the shortest floating point number? g? Same as G format, but expressed as exponent?

c? Single character?

s? String?