How to handle the extra newline character in stdin

后端 未结 0 930
难免孤独
难免孤独 2020-12-14 02:41

Consider the following program :

#include

int main(){

char c;
printf("Want to continue? :");
scanf("%c",&c);
while(c=         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题