Search:

Type: Posts; User: ocy

Search: Search took 0.00 seconds.

  1. Thread: Printing a char.

    by ocy
    Replies
    29
    Views
    4,478

    :confused: But Jst, said that there's an error...

    :confused: But Jst, said that there's an error with the program, before the '&' was used. So, wouldn't it be neccessary to include a '&'? Anyway, I don't have a compiler to verify that now, so if the...
  2. Thread: Printing a char.

    by ocy
    Replies
    29
    Views
    4,478

    ... printf("Name: "); scanf("%s",...

    ...
    printf("Name: ");
    scanf("%s", &str);
    printf("Hello %s", str);
    ...

    Notice the difference? You'd missed something out, something very important.

    The scanf function...
Results 1 to 2 of 2