see this progrmmmmm
[CODE=c]void main()
{
char ch;
printf("enter the string");
do
{
ch=getchar();
} while(ch!='\n') ;
getch();
}[/CODE]
here that do while loops end when we press the "enter key"
but wht is my question is ascii value of "enter key" is 13..
while asccii of '\n ' is 10
how this possible
this program still runs
plz any one say the reson behind this
[CODE=c]void main()
{
char ch;
printf("enter the string");
do
{
ch=getchar();
} while(ch!='\n') ;
getch();
}[/CODE]
here that do while loops end when we press the "enter key"
but wht is my question is ascii value of "enter key" is 13..
while asccii of '\n ' is 10
how this possible
this program still runs
plz any one say the reson behind this
Comment