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
Conversion of a float to pointer type is not allowed.
What will be the output of this code?
void main(){ int i=320; char *ptr=(char *)&i; printf("%d",*ptr); }
In Java I am using statement a += b where a is int and b is double, when I use a += b, it won't give error but in case of a = a + b it gives error, why ?