What does this program print?

from C pointers
C23 (GCC 13.3.0) beginner 2 min

What does this program print?

C
#include <stdio.h>

static void redirect(int *current, int *next) {
    current = next;
    *current = 9;
}

int main(void) {
    int first = 3;
    int second = 4;
    redirect(&first, &second);
    printf("%d %d\n", first, second);
    return 0;
}
Open in playground
Report an error