can i ask questions related to c?

int c;
c=getchar();
while(c!=EOF)
{
putchar(c);
getchar();
}

it is suppoesed to print the char i entered but its not working..
1
2
putchar(c);
c = getchar(); // <-- this 
thanks long double main

is this program suppose to count the character or copy the character i entered and display it as it is?
Topic archived. No new replies allowed.