Hey all. I'm about halfway through a book called "Teach Yourself C in 21 Days." Great book, but I can't find out how to return a pointer from a function. Can anyone give me the syntax, or an...
Type: Posts; User: tzuch
Hey all. I'm about halfway through a book called "Teach Yourself C in 21 Days." Great book, but I can't find out how to return a pointer from a function. Can anyone give me the syntax, or an...
thank you very much vart. I should have done that but I'm fairly new at this.
tzuch
Someone already posted an easier example of this, but when you declare an array you are simply reserving memory. Anything can be in that memory. You need to initialize each of the elements in that...
I found this recursive function code in a C book. I do not understand why it works. It seems to me that there is no variable in the function the keep up with the results, yet it works perfectly! ...
Simple typos. I did a replace from int to float and the ampersand was incorrect.
Guess I'll get new glasses!
Thanks all.
tzuch
I'm new to C programming, but not to programming. Can anyone see why this code isn't working? It seems to be the simplest program in the world, but it always returns a product of 0.00000. If...