Search:

Type: Posts; User: aewofij

Search: Search took 0.00 seconds.

  1. no, i also put i = 0, which solved the problem....

    no, i also put i = 0, which solved the problem. hence my previous post. sorry to be unclear.
  2. changed while (to[i] = from[i] != '\0') ...

    changed


    while (to[i] = from[i] != '\0')
    ++ i;

    to


    while ((to[i] = from[i]) != '\0')
  3. this is exactly what i was looking for. thank...

    this is exactly what i was looking for. thank you.

    (yeah, i'm just typing in random text. hopefully this counts as "lines of code.")

    however, upon sending the EOF code to the above program,...
  4. i see. however, how is it possible that i could...

    i see. however, how is it possible that i could have less than 1 character in the line? (or alternatively, just getting around this.)

    if it means anything, i'm running in terminal.
  5. beginner question - unable to view outputs while in a loop

    i'm sorry, i have no idea how to word this. i'm learning c independently out of k&r on a mac. but there's a problem.

    so, for example, a very simple program which prints the longest line and length...
Results 1 to 5 of 5