mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
march 9-10
This commit is contained in:
12
config/endian.c
Normal file
12
config/endian.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
char x[4];
|
||||
*((int*)&x) = 1;
|
||||
printf("%i\n",x[0]);
|
||||
return(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user