1 votes 1 votes Assume that the size of char is 1 byte and negatives are stored in 2's complement form #include<stdio.h> int main() { char c = 125; c = c+10; printf("%d", c); return 0; } 1.135 2.+INF 3.-121 4.-8 Shashank Kumar Mishr asked May 17, 2017 Shashank Kumar Mishr 2.6k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes Binary form of 125=>01111101 Binary form of 10=>00001010 125+10=10000111 // this is a negative number because sign bit is one take 2's complement of 10000111 is 01111001 decimal value of 01111001 is 121 so answer is =-121 Nitesh Choudhary answered May 17, 2017 • selected May 17, 2017 by dd Nitesh Choudhary comment Share Follow See all 2 Comments See all 2 2 Comments reply dd commented May 17, 2017 reply Follow Share One more interesting. #include <stdio.h> int main() { char c = 125; c = c+10; printf("%u",c); return 0; } 1 votes 1 votes A_i_$_h commented Jun 18, 2017 reply Follow Share gives the address of c 0 votes 0 votes Please log in or register to add a comment.