hi all
I am a little bit confused with this 'simple' code: -
why does this not work?Code:#include <stdio.h> void main() { char *name = NULL; printf("Enter a name: -"); scanf("%s", name); printf("\n%s", name); }
I thought I understood pointers!
Regards