[Solved] in C programming, how to print 1 character [closed]
[ad_1] scanf_s(“%d”, &d); This reads characters as long as they fit the “%d” format. The first character not fitting that format is the newline you entered. This remains in the input stream. scanf_s(“%f”, &f); This skips leading whitespaces (i.e., your newline), then reads characters as long as they fit the “%f” format. The first character … Read more