0 votes 0 votes #include<stdio.h> int main() { char c=125; c=c+10; printf("%d",c); return 0; } (a) 135 (b) +INF (c) -121 (c) -8 Programming in C programming-in-c output interview + – Desert_Warrior asked May 16, 2016 Desert_Warrior 5.1k views answer comment Share Follow See 1 comment See all 1 1 comment reply Desert_Warrior commented May 16, 2016 reply Follow Share In this by default its Signed char or Unsigned? 0 votes 0 votes Please log in or register to add a comment.
Best answer 1 votes 1 votes By default its signed so we can get -121 as result since 125+10 initally 125+2 =127 when 127+1=-128(we move to -ve values) because for char the range is from -128 to +127 So 125+10=-121 if it is unsigned char then we get 125+10=135 shivanisrivarshini answered May 16, 2016 selected May 17, 2016 by Desert_Warrior shivanisrivarshini comment Share Follow See all 2 Comments See all 2 2 Comments reply Desert_Warrior commented May 16, 2016 i edited by Desert_Warrior May 17, 2016 reply Follow Share range : signed char 1 byte -128 to 127 Unsigned char 1 byte 0 to 255 ref : http://www.tutorialspoint.com/cprogramming/c_data_types.htm 0 votes 0 votes shivanisrivarshini commented May 16, 2016 reply Follow Share I'm sorry u r right I will edit answer 0 votes 0 votes Please log in or register to add a comment.