在以下代码中(仅用于实验目的) fgetchar() 获取系统缓冲区中存在的值并因此被终止,为什么?
#include<stdio.h>
#include<conio.h>
int main()
{
printf("Here getch will take the value and it will not echo and will take without enter\n");
getch();
printf("Here getchar will take the value but it will echo on entering ");
getchar();
printf("Here getche will take the value but it will echo not on entering\n");
getche();/*fflush(stdin);*/
printf("now we are going to illustrate the usage of macros");
fgetchar();
}
我读过 fgetchar() 的工作方式类似于 getchar() 唯一的区别是后者是一个宏,这是唯一的区别吗???