Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (13 sloc) 334 Bytes
#include<stdio.h>
#ifdef getchar //this expression is evaluated to zero.....why is so happening ??........getchar is defined as macro in stdio.h.....i mean else part shouldn't be executed which is happening
#undef getchar
#else
#define getchar scanf("%c",&ch);
#endif
main()
{
char ch;
int c;
c=getchar;
printf("%d",c);
}