Most significant bit is one then it identifies a negative number so if you have 8 bits pattern then negative numbers are
10000000 - 11111111 i.e. -128 to -1
and positive numbers are
00000000 - 01111111 i.e. 0 to 127
What type of conversion is not accepted in C and why? a) char to int b) float to char pointer c) int to char d) double to char
#include <stdio.h> int main() { char val=250; int ans; ans= val+ !val + ~val + ++val; printf("%d",ans); return 0; }
A char can not be a +ve or -ve. last bit is signed bit in accumulator.but not useful for CHAR Whats the purpose? of doing it.