While reading from a file in C, I was told that I can add an * after the % to disregard that input. For example:
fscanf(inputfile, "%lf %lf %*lf", &num1, &num2);
In this example the pointer reads three double values, but only two of them need to be stored (the ones without the * sign after the % sign).
Could someone explain how it works, because as far as I know the * sign is used to initialize or step into a pointer?