print without using printf

Mercury CORE 2 DUO
March 30, 2009 at 02:58:23
Specs: windows xp, intel / 1 gb
how to write a program to print a set of line without using printf function ?

See More: print without using printf

Report •

March 30, 2009 at 07:08:33
You can use puts or fputs:

int puts( char *str );

int fputs( const char *str, FILE *stream );

Here is a small example compiled on my Solaris 9 box:

#include <stdio.h>

int main()

puts("Hello World\n");

fputs("Hello World 2\n", stdout);

Report •

April 14, 2009 at 04:28:53
you can use puts functions too.. exactly opposte to getch or getc.

Report •

Related Solutions

Ask Question