Wednesday, 10 December 2014

Programming Quiz-11

Q: What is the output of this C code?

#include  <stdio.h>

int main()

{

   char chr;

   chr = 128;

   printf("%d\n", chr);

   return 0;

}

 Options:

a) 128
b) -128
c) Depends on the compiler
d) None of the mentioned

Answer: B

No comments:

Post a Comment