I amin a beginning C programming class. While writing a simple program I had to tell a scanf statement to ignore the leading white space:
scanf(" %c" . &char);
I read in the textbook that the * is used as a more general form that would ignore any data type that was in the buffer. There were example programs showing its use. However, when I tried to use the astrix the program would not function. It compiled and ran, but it treated the statement as if the astrix was not even there.
So, did I do something wrong? Is this particular to only some compilers?