Renaming all folders
This commit is contained in:
12
09_MemoryManagement/alignviolation.c
Normal file
12
09_MemoryManagement/alignviolation.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
char greeting[] = "Ahoy Matey";
|
||||
char *c = greeting[1];
|
||||
unsigned long badnews = *(unsigned long *)c;
|
||||
|
||||
printf("%s\n", c);
|
||||
printf("%lu\n", badnews);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user