Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Efficiency of the for loop
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="santosh, post: 2489555"] Also flexible/generic code. In the sense that all data processing functions are interpreters? This will duplicate each value of i. Horrible. Might as well program in assembly. This will break fantastically upon any modification. And what if the bounds of i is 100000. You plan on writing that out as a string literal? printf() is more convinient for converted and formatted output. If you're forced to use puts(), over time you'll tend to duplicate most of printf()'s functionality, and ofcourse your replica won't be portable. Yes, most I/O is often so slow compared to the processor that it's probably waste of time to try to micro-optimise I/O routines. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Efficiency of the for loop
Top