“C Formatspezifizierer” Code-Antworten

C Formatspezifizierer

%c			Character
%d			Signed integer
%e or %E	Scientific notation of floats
%f			Float values
%g or %G	Similar as %e or %E
%hi			Signed integer (short)
%hu			Unsigned Integer (short)
%i			Unsigned integer
%l or %ld or %li	Long
%lf			Double
%Lf			Long double
%lu			Unsigned int or unsigned long
%lli or %lld	Long long
%llu		Unsigned long long
%o			Octal representation
%p			Pointer
%s			String
%u			Unsigned int
%x or %X	Hexadecimal representation
%n			Prints nothing
%%			Prints % character
Obedient Oystercatcher

Formatspezifizierer in C.

SPECIFIER  USED FOR
%c			  a single character
%s			  a string
%hi			  short (signed)
%hu			  short (unsigned)
%Lf			  long double
%n			  prints nothing
%d			  a decimal integer (assumes base 10)
%i			  a decimal integer (detects the base automatically)
%o			  an octal (base 8) integer
%x			  a hexadecimal (base 16) integer
%p			  an address (or pointer)
%f			  a floating point number for floats
%u			 int unsigned decimal
%e			 a floating point number in scientific notation
%E			 a floating point number in scientific notation
%%			 the % symbol
Wandering Walrus

Ähnliche Antworten wie “C Formatspezifizierer”

Fragen ähnlich wie “C Formatspezifizierer”

Weitere verwandte Antworten zu “C Formatspezifizierer” auf C

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen