I don't understand these conversions in C I have for homework. Could you explain me or give some links?
1)Given int n= 200, m= 200;
long r;
And supposing sizeof(int) is 2, what is the result of: r = n*m; ?
Answer is -25536
Why?
2)Given static int i, t[10]; i and t are not explicit initialised
Which will be the result of the expression:
(i=0) || (t[i] <0)
Result is 1
3) a) Given char c = 130;
c will become -126
b) What will the following sequence return for this input: 20?
#include<stdio.h>
void main(){
char a;
scanf("%c", &a);
printf("%c", a);
}
Result is: 2
Thank you!