Guys
I am confused about the mechanism of EOF character.While I am typing something
like A,B,C it gives me values of 65,67,68 as mentioned in ASCII code.
But when I press ctrl + Z on my command prompt(which means executing EOF
character) its value comes as -1.I know EOF is defined in header file of
stdio.h as :#define EOF (-1),thats why I get -1(I suppose).
My question is how ctrl+z relates EOF ?What is the mechanism here?
My programing environment is visual c++ 2008 express edition on windows XP.
Thanks,AJ
[Non-text portions of this message have been removed]