[prev] [index] [next]

Tips for Next Quiz

  • Lab exercises week 6-8 are a good preparation
  • 2 programs
  • Use scanf to read lines with correctly formatted input data

    Example: You can read input of the form

    comp 1921 87.5
    

    via

    char  str[BUFSIZ];
    int   i;
    float f;
    scanf("%s %d %f", str, &i, &f);