I'll be using a linked list in my next stupid program and I don't want to use any global variables. This was my practiceCode:#include <stdio.h> void change_x(int **x) { *x = (int *)10; } int main(void) { int *x = NULL; change_x(&x); printf("%d\n", x); return 0; }
Is this correct? gcc didn' t give me any errors or warnings. Thanks.