format specifiers used in C programming

Here is a complete list of all format specifiers used in C programming language.
Format specifierDescriptionSupported data types
%cCharacterchar
unsigned char
%dSigned Integershort
unsigned short
int
long
%e or %EScientific notation of float valuesfloat
double
%fFloating pointfloat
%g or %GSimilar as %e or %Efloat
double
%hiSigned Integer(Short)short
%huUnsigned Integer(Short)unsigned short
%iSigned Integershort
unsigned short
int
long
%l or %ld or %liSigned Integerlong
%lfFloating pointdouble
%LfFloating pointlong double
%luUnsigned integerunsigned int
unsigned long
%lli, %lldSigned Integerlong long
%lluUnsigned Integerunsigned long long
%oOctal representation of Integer.short
unsigned short
int
unsigned int
long
%pAddress of pointer to void void *void *
%sStringchar *
%uUnsigned Integerunsigned int
unsigned long
%x or %XHexadecimal representation of Unsigned Integershort
unsigned short
int
unsigned int
long
%nPrints nothing
%%Prints % character

No comments

বিটকয়েন - নতুন ধারা

বিটকয়েন হচ্ছে এক ধরনের সাংকেতিক মুদ্রা (Virtual Currency) যেটি ক্রিপ্টোগ্রাফিক প্রোটকলের মাধ্যমে লেনদেন করা হয়ে থাকে। এটি লেনদেন নিয়ন্ত্রণ...

Theme images by enjoynz. Powered by Blogger.