diff --git a/laborator/content/reprezentare-numere/demo/pointers/pointers-demo.c b/laborator/content/reprezentare-numere/demo/pointers/pointers-demo.c index 2b959da8..c89714a5 100644 --- a/laborator/content/reprezentare-numere/demo/pointers/pointers-demo.c +++ b/laborator/content/reprezentare-numere/demo/pointers/pointers-demo.c @@ -20,7 +20,7 @@ int main(void) p = p + 4; printf("p : %p\n", p); - *p = &var; + *p = (int) &var; printf("p : %p\n", &p); printf("var : 0x%08x\n", var); diff --git a/laborator/content/utils/Makefile.generic b/laborator/content/utils/Makefile.generic index db6e35b9..0d8614ca 100644 --- a/laborator/content/utils/Makefile.generic +++ b/laborator/content/utils/Makefile.generic @@ -1,6 +1,8 @@ PROGNAME ?= a.out build: $(PROGNAME) +run: build + ./$(PROGNAME) UTILSDIR := $(dir $(lastword $(MAKEFILE_LIST))) include $(UTILSDIR)/Makefile.inc