I don't understand the effect of following code:
char ch;
while((ch=getchar() )!= ';')
putchar (Ch);
Should this section read and write character up to but not including the firs semi colon.
I don't understand the effect of following code:
char ch;
while((ch=getchar() )!= ';')
putchar (Ch);
Should this section read and write character up to but not including the firs semi colon.
It only means, loop and print all characters except ; read from standard input and once ; is found, quit the loop.