Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
CheckProcessorEndianness
#include <stdio.h> #include <stdint.h> int main (void) { int foo = 0x12ABCDEF; uint8_t *temp = (char *)&foo; printf ("------> 0x%02X%2X%2X%2X <------\n", temp[0],temp[1],temp[2],temp[3]); printf ("------> 0x%4X <------\n", foo); printf ("(This processor is %s endian.)\n", temp[0] == 0x12 ? "Big" : "Little"); }
run
|
edit
|
history
|
help
1
pruebapi2
Incometax problem v1.1
Access the structure variable
Square pyramid
C programming example implementing a function to set a specified bit in an int (from ECE 2534)
Part 1: Draw Arts
B_141121_factorial02
orange blue bell Einstein's piece chastitise then
Card shuffling and dealing program using structures
B_141202_PALINDROMO