'how do you do a type casting in one line in c?
how do you do a type casting in one line in c?
unsigned char num[4]={0,2}; //512 little endian
unsigned int * ptr = num;
printf("%u\n", *ptr); // 512
//trying to do the same underneath in one line but it dosen't work
printf("%u\n", (unsigned int *)num); //
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
