Here is my piece of code:
char** filename;
*(filename) = "initialize";
printf("filename = %s",*(filename));
I got this error when I tried to run it:
Run-Time Check Failure #3 - The variable 'filename' is being used without being initialized.
Is there any way to fix this?
You need to allocate room for filename using new or malloc. As it is, filename is just a pointer to a random area of memory you have not requested…