c clear buffer

[ad_1]

c++ flush stdin
fflush(stdin);
clear buffer in c
while (getchar() != '\n');//Clearing the buffer
c clear buffer
void clearBuffer() {
	char c;
	do {
		c = getchar();
	} while (c != '\n' && c != EOF);
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com