Code:#include <stdio.h> #include <stdlib.h> int main() { char x='\401'; printf("%d",x); return 0; }
Code:#include <stdio.h> #include <stdlib.h> int main() { char x='\401'; printf("%d",x); return 0; }
If your question is "what happens when I try to store a value that is too large to fit in the variable I am trying to put it into", the answer is "it gets cut off to fit". Otherwise, reload your question and try again.
If "it gets cut off to fit". can you explain how the 1 value is stored in x?
Well, that's what's left when you cut off the part that's too big.
Code:your number -> 100000001 what fits -> |______|
thanking you coder.......