Computing.Net > Forums > Programming > print without using printf

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

print without using printf

Reply to Message Icon

Name: mebadboy
Date: March 30, 2009 at 02:58:23 Pacific
OS: windows xp
CPU/Ram: intel / 1 gb
Product: Mercury / CORE 2 DUO
Subcategory: C/C++
Comment:

how to write a program to print a set of line without using printf function ?



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: March 30, 2009 at 07:08:33 Pacific
Reply:

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);
}


0

Response Number 2
Name: sandipkalle
Date: April 14, 2009 at 04:28:53 Pacific
Reply:

you can use puts functions too.. exactly opposte to getch or getc.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


unix output to VB.net Kill MSAccess process via...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: print without using printf

print without using printf www.computing.net/answers/programming/print-without-using-printf/18429.html

without using ODBC www.computing.net/answers/programming/without-using-odbc/546.html

Datagrid without using Adodc (vb6) www.computing.net/answers/programming/datagrid-without-using-adodc-vb6/12338.html