It will be discarded for sure after reading.
Let's understand it with a simple example
int i = 1;
i++;
What second statement will do actually. When it executes, the the value of i
is fetched from memory but there is no other variable to assign this value to, and it gets discarded, and the increment may take place at any time between the previous and next sequence point.
Similarly getchar();
will read a character but it will be discarded as there is no assignment of this value to any memory location.