Search:

Type: Posts; User: std10093

Search: Search took 0.03 seconds.

  1. Replies
    20
    Views
    3,823

    Go to post number 5. (If i were you I would do...

    Go to post number 5.

    (If i were you I would do that. It is not such a big deal ;) )
  2. Replies
    20
    Views
    3,823

    Maybe this...

    Maybe this is better.
  3. Replies
    20
    Views
    3,823

    length + 1 was meant for the terminating null....

    length + 1 was meant for the terminating null. You have to remember this for your dynamic allocation too!

    I provided you two options... Not one :)

    If you interesting read here for the gcc
  4. Replies
    20
    Views
    3,823

    Salem explained the problem, but you posted the...

    Salem explained the problem, but you posted the same time so I guess you didn't notice it :)

    You have to dynamically allocate your memory, or set from start a constant number that is logical for...
  5. Replies
    20
    Views
    3,823

    You have have char input[] = ""; so...

    You have have


    char input[] = "";

    so automatically, the length is computed by the compiler to preserve enough space to fit what is assigned to it, thus ""
    What you need is


    char...
Results 1 to 5 of 5