What is the practical use of the formats \"%*\" in scanf(). If this format exists, there has to be some purpose behind it. The following program gives weird out
\"%*\"
The * is used to skip an input without putting it in any variable. So scanf("%*d %d", &i); would read two integers and put the second one in i.
*
scanf("%*d %d", &i);
i
The value that was output in your code is just the value that was in the uninitialized i variable - the scanf call didn't change it.