Q: What is the output of this C code?
Options:
a) 128
b) -128
c) Depends on the compiler
d) None of the mentioned
Answer: B
| #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