Use * : scanf star « printf scanf « C Tutorial






The * is used to suppress input.

scanf(" %d %*d %*d%*d %d ", &i, &j)

If your input is 10 20 30 40 50, i will get the value 10 and j will get the value 50.

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