739 views

1 Answer

3 votes
3 votes

See the thing here is char is of 1 Byte,although it is platform dependent,but most of the time it is 1 Bytes.

and you can represent only in -128 to 127(range of 8 bit sign char).

Now binary representation of 200 is 11001000 which clearly is out of range.

Now represent 200 in 2's form i.e 00111000(56) add -(minus) to get true magnitude so -56 is the answer.

Refer :: https://gateoverflow.in/164498/c-programming

Related questions

2 votes
2 votes
1 answer
1
1 votes
1 votes
0 answers
2
Akshay Nair asked Jan 29, 2018
427 views
What is the output of the following program?void main(){printf("%d",5%2);printf("%d",-5%2);printf("%d",5%-2);printf("%d",-5%-2);printf("%d",2%5);}A) 1,-1 -1 1 0B)1 -1 1 -...
3 votes
3 votes
2 answers
3
Khushal Kumar asked Jul 10, 2017
1,529 views
#include <stdio.h>#include <string.h>void fun(char *arr){int i;unsigned int n = sizeof(arr);printf("n = %d\n", n);for (i=0; i<n; i++) printf("%c ", arr[i]);}// Driver pro...
2 votes
2 votes
2 answers
4
Khushal Kumar asked Jul 8, 2017
1,344 views
int main(){ int a = 3, b = -8, c = 2; printf("%d", a % b / c); return 0;}