Ashokkumar01cbe
Broken In
#include<stdio.h>
void main()
{
int c;
c=getchar();
while(c!='\n')
{
putchar(c);
c=getchar();
}
}
please explain me this program it is written in a c book written book of dennis ritchie, when i compile this programs,its getting a string of charecters and after pressing the ENTER button it is printing those string of charecters
please explain the above program ... run it in gcc compiler and explain
void main()
{
int c;
c=getchar();
while(c!='\n')
{
putchar(c);
c=getchar();
}
}
please explain me this program it is written in a c book written book of dennis ritchie, when i compile this programs,its getting a string of charecters and after pressing the ENTER button it is printing those string of charecters
please explain the above program ... run it in gcc compiler and explain