The printf() function prints a formatted string.
Printf function is used in c language. Printf is used to print something to the standard output. ex: printf ('welcome');
printf(format_string, ...);
printf"Bhawana"
printf();
printf ("initials");
... int i; for( i = 0; i < 7; ++i ) { printf("*"); } printf("\n"); ...
putchar ('%'); puts ("%"); printf ("%%"); etc...
You will have to use "printf" when you want to print two slashes one after another in c.
try to usecondition ? value if true : value if falseor: if (printf ("Hello")) {}
putc('%'); write(1, "%", 1); printf("%%"); printf("%c", '%'); will all each put a % character (percent sign) on stdout.
its quite simple using printf function
You can use fputs() instead of printf().