Saturday, September 13, 2008

c Questions with answers

1.)What is the output of following program?
#include
#include
int main()
{printf("%c\n", '1' + 1);
return EXIT_SUCCESS;
}
a)ASCII value of ‘1′ is required to find out the answer
b)2
c)50
d)Syntax Error
ans. d

No comments: