Monday, July 9, 2007

Interesting C Program -8

Just C the potential of the space in the following C Program:
(Try removing the space before %c in scanf)

#include
int main()
{
char c;
scanf("%c",&c);
printf("%c\n",c);

scanf(" %c",&c);
printf("%c\n",c);

return 0;
}

No comments:

Search Google

Books that I refer to...

  • The Complete Reference C, Fourth Edition
  • The C Programming Language