#include <stdio.h>
#include <stdlib.h>

int plus1(int *x) {
    *x = *x + 1;
    return *x;
}

int main(void) {
   int a, *x = malloc(sizeof(int));
   *x = 5;
   printf("Wert von x vorher: %i\n", *x);
   a = plus1(*x);
   printf("Wert von x nachher: %i\n", *x);
   free(x);
   return 0;
}
