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
CremovePointFun
Bitwise Operations
PRACTICE FINAL 2
A_141124arrayRepetidos
Stub Program for Problem 4 HW 2
150109_RecursividadPrimo
recurtion
poist
Replacing Evens and Odd with ones and zeroes in a 3-Dimensional array
Project 3 Part 1 v1.6