Letsee++ said:
is it possible to write a program to read and print a number without
using standard library functions in C and C++?
if yes ....how?
You could certainly do it on machines in the DOS era. I can't remember all
the buzz words, x86 comes to mind. You could communicate with the OS via a
kind of back door. I suspect if one were clever enough you might still be
able to do something. I wrote a routine to print (on a *printer*) that
still worked with Windows 98 using these techniques I am thinking of -- I
haven't used it lately. This avoided the heavily burdened GUI way of
printing, so it actually served a purpose. You could do printing
concurrently with program execution is a Windows program (which a "console"
program is).
Consider also what you might do with the system() function.