Search Results

Showing results 1 to 7 of 7
Search took 0.01 seconds.
Search: Posts Made By: SpS ; Forum: C and child forums
Forum: C Aug 29th, 2007
Replies: 17
Solved: Stupid Question
Views: 2,266
Posted By SpS
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
Solved: Stupid Question
Views: 2,266
Posted By SpS
This would be better

printf("Hit 'ENTER' to exit\n");
fflush(stdout);
(void)getchar();
Forum: C Aug 19th, 2007
Replies: 5
Views: 3,531
Posted By SpS
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
Posted By SpS
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
Posted By SpS
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
Solved: rewind
Views: 2,593
Posted By SpS
I would recommend you to read this tutorial
http://www.cprogramming.com/tutorial/cfileio.html
Forum: C Jan 5th, 2006
Replies: 6
Solved: rewind
Views: 2,593
Posted By SpS
We don't use this...we use
rewind(in);

Are you sure about what you are asking...if yes, please make it more clear
Showing results 1 to 7 of 7

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC