#include #include /*How many ways are there to initialize a variable? Lets find out! Polprog 2018*/ int main(){ int a = 123; int *b = malloc(sizeof(int)); *b = 123; int *c = calloc(1, sizeof(int)); memset(c, 123, 1); volatile uint32_t *d = calloc(1, sizeof(uint32_t)); asm volatile ("\ movl $123, %0\n\ ":"=m" (*d)::"cc"); //Check is everything working as expected printf("a:%d b:%d c:%d d:%d", a, *b, *c, *d); free(b); free(c); free(d); return 0; }