getchar():
1.when we use 'getchar()' function to read a character,after reading a character the function waiting for press the 'ENTER' otherwise other part of the program won;t execute.
Example:
char input;
input=getchar();/*input the character*/
/*if you don't press ENTER after reading the input then 'printf()' function not executed*/
printf("%c",input);
getche():
1.It is not need press 'ENTER' after reading character.
Example:
char input;
input=getchar();/*input the character*/
/* you don't press ENTER after reading the input then 'printf()' function executed aut0matically*/
printf("%c",input);
1.when we use 'getchar()' function to read a character,after reading a character the function waiting for press the 'ENTER' otherwise other part of the program won;t execute.
Example:
char input;
input=getchar();/*input the character*/
/*if you don't press ENTER after reading the input then 'printf()' function not executed*/
printf("%c",input);
getche():
1.It is not need press 'ENTER' after reading character.
Example:
char input;
input=getchar();/*input the character*/
/* you don't press ENTER after reading the input then 'printf()' function executed aut0matically*/
printf("%c",input);
0 comments:
একটি মন্তব্য পোস্ট করুন