write, putchar, putc, fputc etc
for (first=n; first>=10; first/=10);
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...
If you forget the semicolon, your program won't compile.
printf ("initials");
int main (void) { if(printf("Print whatever you want")) { } }
Printf function is used in c language. Printf is used to print something to the standard output. ex: printf ('welcome');
putchar ('%'); puts ("%"); printf ("%%"); etc...
use cout << simple
printf("%u %+d %+d",200,200,-200); //will print 200 +200 -200
for (first=n; first>=10; first/=10);
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...
try to usecondition ? value if true : value if falseor: if (printf ("Hello")) {}
printf(format_string, ...);
Your question makes no sense.
void PrintDist (double d) { printf ("the distance is %g", d); }