| | |
print sting using printf in main or functions?
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
check kerningham and ritchie, implement your own print functions using low level apis
•
•
•
•
Hi,
This is satya,
how we can print a string in C that doesn't use printf in main or functions?
plz help on this
Thank u..
c Syntax (Toggle Plain Text)
puts(cString);
If you want to win, you must not loose (Alan Ford)
Yes that's understood. What my point was. that. putc() outputs one character so if you wish to output words to the console, you'll need to LOOP for each character you wish to output. thus being very ineffective.
puts() would eradicate the need for looping altogether.
puts() would eradicate the need for looping altogether.
GardCMS :: Open Source CMS :: Gardcms.org
Re-read the original question -- does not say anything about which method is the most effective or requires the least coding. Actually fwrite() will work as well. I think teachers in college ask silly questions like this one just to see if the student has any imaginagion.
I told Santa what I wanted for Christmas and he washed my mouth out with soap.
![]() |
Other Threads in the C Forum
- Previous Thread: Masking user input (password)
- Next Thread: help me
Views: 2643 | Replies: 14
| Thread Tools | Search this Thread |
Tag cloud for C
adobe ansi api array arrays bash binarysearch centimeter char character convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory drawing dynamic executable feet fflush file floatingpointvalidation fork frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling hardware highest homework i/o ide infiniteloop initialization interest intmain() kilometer lazy license linked linkedlist linux linuxsegmentationfault list match matrix meter microsoft multi mysql oddnumber odf open openwebfoundation pattern pause pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition scheduling segmentationfault send shape single socketprogramming spoonfeeding stack standard strchr string strings structures student suggestions system test testautomation unix urboc user visualstudio voidmain() win32 win32api windows.h






