int main() { int x = 5; basic_pointer(x); basic_pointer2(x); basic_pointer_changeValue(x); printf("Wert von x vor der Funktion call_by_reference: %d\n",x); call_by_reference(&x); printf("Wert von x nach der Funktion call_by_reference: %d\n",x); return 0; }
void reference(void) { char temp = 'c'; int temp_int = 9; int *a = &temp_int; char *c = &temp; printf("%d %p\n", *a, a); printf("%c %p\n", *c, c); call_by_reference(a, c); printf("%d %p\n", *a, a); printf("%c %p\n", *c, c); }