Mina2016
Junior Member level 1
Hello,
In C code below why I cannot use float to declare pointer to the floating point number. It has used “char” but I don’t understand why.
could you explain it to me?
Thanks
In C code below why I cannot use float to declare pointer to the floating point number. It has used “char” but I don’t understand why.
could you explain it to me?
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 #include "stm321476xx.h" ‡include <stdio.h> unsigned int a = 1; unsigned int b, c; float x = 3.0; int main () { // declare pointer to the floating point number x // char *ptr = (char *)&x;
Thanks