Monday, September 8, 2008

What is the output of following programme ?

int main()
{
int x = -10;
printf("%d\n", ~x+1);
return EXIT_SUCCESS:
}
a) -11
b) -9
c) 10
d) Size of the integer is required to find out the answer.

No comments: