C/Print

Advertisement


Question
How to print some text on the screen without using statements like printf,sprintf,puts?

Please give me the coding if possible

Answer
printf(), puts() etc, are some wrappers that your C program is giving.
These wrappers call the underlying system calls, which are direct calls to hardware.
So, you can also use them.

On Solaris or Linux or any other Unix machines, you can use open(), close(), write() system calls.

On windows, I don't know the corresponding calls.

Before using these calls, study the man pages and write your code accordingly.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.