But recursion needs a bigger stack since it has to go back.
So try to avoid recursion wherever possible.
Jag
Type: Posts; User: jaguar23
But recursion needs a bigger stack since it has to go back.
So try to avoid recursion wherever possible.
Jag
Yep,
define ItIsStrings as static inside the function since it's local and define Strings as a char pointer or use strcpy function to copy the string as mentioned above.
Jag
Yep, that's right.
it's useless.
but you can't have the defines in switch expression.
switch(YES){
}
They are compile time constants. You can't switch constants defined in your program.
#define etc.
Hey,
Enter your code within a while loop. You are getting only one age as input.
insert this while loop.
total = 0;
count = 0;
do
{
//your code here.
intialize buf array.
Jag
Hey,
Size is not known most of the time. Then how can you allocate the maximum size. If you use a very large number, you are eating the memory.
Read more about linked lists. They are smarter...
Hey,
If all the numbers are positive(guess they are socres), the program works as you expected. I don't know what ti_record_time means. Try with printf instead of it.
Good luck
Jag
Hey,
Post aligned code. Difficult to understand.
Jag
Hey Spiros,
Nothing wrong with your original code. It works. I just compiled it and executed with Turbo C.
Cause for your problem may be a previous input. It probably gets the enter of your...
Hey,
Linked lists are little bit trickier for a beginner. Try to get a knowledge about pointers. Then it'll be easier than you think.
Dynamic memory allocation is nothing but just allocatin...