scanf: skip the integer between the two strings : scanf star « printf scanf « C Tutorial






#include <stdio.h>
  int main(void)
  {
    char str[80], str2[80];
    int i;

    printf("skip the integer between the two strings:");
    scanf("%s%*d%s", str, str2);

    return 0;
  }








4.31.scanf star
4.31.1.Use *
4.31.2.scanf: skip the integer between the two strings