I am trying to read from keyboard (using scanf
) the variable char *path
I don't know how to pass the path
as argument of scanf to get the input from keyboard. How can I do it?
P.S. This is what I have tried:
char *filePath = "";
printf("Path: "); scanf("%s", &filePath);
But my application always stops.