Consider the following code
int main ( )
{
int i = 511;
char ∗ptr = (char∗ )&i;
printf("%d", ∗ptr);
}
value printed by above code is_________
1
-1
2
1
3
0
4
2
Consider the following code
int main ( )
{
int i = 511;
char ∗ptr = (char∗ )&i;
printf("%d", ∗ptr);
}
value printed by above code is_________