Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does %*d mean in C language?
What does %*d mean in C language?
In C language, %*d means to ignore the first integer, while * in %*d means to skip its corresponding data, indicating the number of spaces in the output data area and its corresponding data, so as to copy the next input content into the next variable.

C language format introduction: %d is the output integer data, and the combination of% and format characters is used to convert the output data into the specified format for output. %d is a signed integer, which means that the resulting value is printed as a signed integer.

Extended data

Use of %*d

int index _ t = 1;

scanf("%*d ",& ampindex _ t);

printf("%d ",index _ t);

//No matter how you fight? The values obtained are all 1.

int index _ t = 1;

scanf("%d ",& ampindex _ t);

printf("%d ",index _ t);

//No matter how you fight? The values obtained are all the values you entered.