Sunday, January 10, 2010

What is the output of following program?

#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

No comments: