printf("%c ",ch);
2.%d is used to output decimal signed integers. For example:
printf("%4d,%4d ",a,b);
3.%s is used to output strings. For example:
printf("%s "," begin ");
4.%ld is used to output long integers, for example:
printf("Long=%ld,byte=%d\n ",Long,sizeof(Long));
5.%u is used to output decimal unsigned integers. For example:
Printf("unint=%u, byte=%d\n ",unint, sizeof (unsigned integer));
Extended data
I/O (input/output) in C language usually uses printf () and scanf () functions.
The scanf () function is used to read and format from the standard input (keyboard), and the printf () function sends the print format to the standard output (screen). For example:
%d print format integer
# include & ltstdio.h & gt
int main()
{
?
int test integer = 5; ?
printf("Number = %d ",test integer); ?
Returns 0;
}