Join our subscribers list to get the latest news, updates and special offers directly in your inbox
Overview
2.2 Use Cases:
#include "stdio.h" int main() { unsigned int x = 0x12345678; unsigned char *c = (unsigned char*)&x; if (*c == 0x78) { printf("Little-Endian\n"); } else if (*c == 0x12) { printf("Big-Endian\n"); } else { printf("Unknown Endianness\n"); } return 0; }
EmbeddedWala
EmbeddedWala Apr 27, 2023 0 17.1K
EmbeddedWala Jun 14, 2023 0 16.1K
EmbeddedWala Apr 26, 2023 0 15.3K
EmbeddedWala Aug 30, 2022 0 13.9K
EmbeddedWala Apr 27, 2023 0 13.7K
EmbeddedWala Jun 19, 2022 0 4.2K
This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies Find out more here