Search:

Type: Posts; User: Salem

Search: Search took 0.32 seconds.

  1. Replies
    29
    Views
    2,008

    I take it you never bothered to read post #10...

    I take it you never bothered to read post #10 then.
    NEVER use gets()
  2. Replies
    29
    Views
    2,008

    > the program won't crash!!!!! however my string...

    > the program won't crash!!!!! however my string has only 5 slots!!! and I assigned 'k' to the sixth slot, which doesn't even exist!!! how come it works?!
    Pure dumb luck.

    C doesn't check array...
  3. Replies
    29
    Views
    2,008

    > scanf("%s%s", first_name, last_name); //no...

    > scanf("%s%s", first_name, last_name); //no space required between the two %s
    Did you try this, to see what happened?
    Preferably with two names shorter than 10 characters.

    The presence (or...
Results 1 to 3 of 3