Search:

Type: Posts; User: Adak

Search: Search took 0.06 seconds.

  1. Replies
    6
    Views
    5,552

    ^^^ Definitely! scanf() is for formatted...

    ^^^ Definitely!

    scanf() is for formatted input, not user input. It's just used for user input while a student is getting started.

    I'm sure fgets() should be used more, even in such classes...
  2. Replies
    6
    Views
    5,552

    Try this one: #include int...

    Try this one:



    #include <stdio.h>

    int main(void) {
    int i=0;
    char myarray[80];
Results 1 to 2 of 2