Answers for "printf char string"

C
3

printf signed char

%c   --- char
%hh  --- signed char (synomous with char)
%hhu --- unsigned char
%h   --- short
%hu  --- unsigned short
%d   --- int
%u   --- unsigned int
%lu  --- unsigned long (including size_t, which is returned by sizeof())
Posted by: Guest on December-04-2020
1

printf char value

char ch = 'a';
printf("%d", ch);
Posted by: Guest on March-30-2021

Code answers related to "C"

Browse Popular Code Answers by Language