1) Why getchar() needs to call twice if preceding code uses scanf()?
2) How to design to achieve Press any key to continue...?
Type: Posts; User: ulti-killer
1) Why getchar() needs to call twice if preceding code uses scanf()?
2) How to design to achieve Press any key to continue...?
#include <stdio.h>
int main()
{
printf("Press any key to continue...");
getchar();
return 0;
}
Is there any way to replace system("pause")? :confused: