P
Pravin Shetty
Hi to all,
Q)
main()
{
int c;
c=getchar();
while(c!=EOF)
{
putchar(c);
c=getchar();
}
}
: - why instead of declaring c as a char is declaered as an int?
why EOF is defined as an int in <stdio.h>
Q)
main()
{
int c;
c=getchar();
while(c!=EOF)
{
putchar(c);
c=getchar();
}
}
: - why instead of declaring c as a char is declaered as an int?
why EOF is defined as an int in <stdio.h>