Printf(): we can print the string very easily using the printf() function using ‘%s’ as follows:
Syntax: printf(“%s”,variable);
e.g: printf(“%s”,str);
putchar(): putchar() function is use to print the single character on the screen.
Syntax: putchar(variable);
e.g: char a=’j’
putchar(a);
puts(): puts() function is use to print a line of string.
Syntax: puts(string variable);
e.g: char str[15]=”Jatin Sharma”;
puts(str);
it will print: Jatin Sharma