adplus-dvertising
frame-decoration

Question

What is the output of this program?
int main()
{
char ch;
ch = 128;
printf("%d", ch);
return 0;
}

a.

128

b.

-128

c.

Depends on compiler

d.

None of the above

Posted under C Programming

Answer: (b).-128

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?