scanf: skip the integer between the two strings : scanf « stdio.h « C / ANSI-C






scanf: skip the integer between the two strings


  
  #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;
  }

           
       








Related examples in the same category

1.scanf: read input