Forum: C Aug 29th, 2007 |
| Replies: 17 Views: 2,266 Since some compilers (and lint) will warn about discarded return values, an explicit cast to (void) is a way of saying "Yes, I've decided to ignore the return value from this call. |
Forum: C Aug 28th, 2007 |
| Replies: 17 Views: 2,266 This would be better
printf("Hit 'ENTER' to exit\n");
fflush(stdout);
(void)getchar(); |
Forum: C Aug 19th, 2007 |
| Replies: 5 Views: 3,531 In case char *name="Yankee Duddle"; string literal turns into an unnamed, static array of characters, and this unnamed array may be stored in read-only memory, and which therefore cannot necessarily... |
Forum: C May 23rd, 2006 |
| Replies: 3 Views: 1,045 I think if possible you should go as local as you can keeping in mind memory.
As far as processing power is concerned, you should'nt care unless you are working on a system having limited amount... |
Forum: C Apr 30th, 2006 |
| Replies: 4 Views: 1,642 See srand (http://www.cppreference.com/stdother/srand.html) and rand (http://www.cppreference.com/stdother/rand.html) |
Forum: C Jan 5th, 2006 |
| Replies: 6 Views: 2,593 I would recommend you to read this tutorial
http://www.cprogramming.com/tutorial/cfileio.html |
Forum: C Jan 5th, 2006 |
| Replies: 6 Views: 2,593 We don't use this...we use
rewind(in);
Are you sure about what you are asking...if yes, please make it more clear |