use cout << simple
int main (void) { if(printf("Print whatever you want")) { } }
If you forget the semicolon, your program won't compile.
try to usecondition ? value if true : value if falseor: if (printf ("Hello")) {}
printf("%u %+d %+d",200,200,-200); //will print 200 +200 -200
With functions like ecvt, fcvt, gcvt.
you can put the printf function inside a if() so that you need not use semicolons. for eg to print my name, if(printf("My Name is Maheedharan")) {} this will work. try this out...
#include <stdio.h> int main (void) { puts ("the name"); return 0; }
printf(format_string, ...);
Printf function is used in c language. Printf is used to print something to the standard output. ex: printf ('welcome');
Your question makes no sense.
write, putchar, putc, fputc etc
The printf() function prints a formatted string.