Search:

Type: Posts; User: jaguar23

Search: Search took 0.00 seconds.

  1. But recursion needs a bigger stack since it has...

    But recursion needs a bigger stack since it has to go back.
    So try to avoid recursion wherever possible.

    Jag
  2. Replies
    3
    Views
    952

    Yep, define ItIsStrings as static inside the...

    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
  3. Replies
    9
    Views
    1,371

    Yep, that's right. it's useless.

    Yep, that's right.
    it's useless.
  4. Replies
    9
    Views
    1,371

    but you can't have the defines in switch...

    but you can't have the defines in switch expression.


    switch(YES){
    }
  5. Replies
    9
    Views
    1,371

    They are compile time constants. You can't switch...

    They are compile time constants. You can't switch constants defined in your program.
    #define etc.
  6. Replies
    12
    Views
    2,385

    Hey, Enter your code within a while loop. You...

    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.
  7. Replies
    9
    Views
    4,777

    intialize buf array. Jag

    intialize buf array.

    Jag
  8. Thread: Malloc/Free

    by jaguar23
    Replies
    5
    Views
    1,867

    Hey, Size is not known most of the time. Then...

    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...
  9. Hey, If all the numbers are positive(guess...

    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
  10. Hey, Post aligned code. Difficult to...

    Hey,

    Post aligned code. Difficult to understand.

    Jag
  11. Thread: menu

    by jaguar23
    Replies
    8
    Views
    1,438

    Hey Spiros, Nothing wrong with your original...

    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...
  12. Replies
    3
    Views
    5,458

    Hey, Linked lists are little bit trickier for...

    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...
Results 1 to 12 of 12