Hey hi ,
i want to read input frm user fm command prompt(Cmd)!!And aslo print it on Cmd.
Now if i use
#include <stdio.h>
main()
{ int c;
while ((c=getchar()!=EOF)//get the sinle char
putchar(c);//prnt it on cmd
}
But i dnt knw how to enter EOF as i am user and wants to end somewhere!!!!
How to do it???Whts the value of EOF????