| | |
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.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Other Threads in the C Forum
- Previous Thread: Masking user input (password)
- Next Thread: help me
Views: 2640 | Replies: 14
| Thread Tools | Search this Thread |
Tag cloud for C
#include * array arrays asterisks binarysearch calculate changingto char cm command copyimagefile cprogramme creafecopyofanytypeoffileinc database directory dynamic execv fflush file fork forloop framework functions getlasterror givemetehcodez grade graphics gtkwinlinux hacking hardware histogram homework inches include incrementoperators input iso kernel keyboard km lazy linked linkedlist linux list lists locate logical_drives looping loopinsideloop. lowest matrix microsoft motherboard mqqueue mysql number opendocumentformat opensource overwrite owf pattern pdf performance pointer pointers posix problem probleminc process program programming radix recursion recv research reversing scanf scripting segmentationfault sequential socket socketprograming spoonfeeding standard string structures student systemcall testing threads turboc unix user variable voidmain() wab whythiscodecausesegmentationfault windowsapi






