0
Will this pose an error ? As I'm taking an integer type pointer to a float value
int *x, *y; float i=1.6; int a=6; x=&i; y=&a; x++; y++;
4 odpowiedzi
0
Yes it will point out a type error.
0
It's just giving me warnings
0
Maybe because the pointer is always an unsigned int type and it can point to any data type. But you create int pointer for integers and char pointer for characters, and I have never tried this way so thought it would give an error.
0
you should typecast that before asigning it to a pointer