Code:
TCHAR szPath[MAX_PATH];
memset(szPath,'\0',MAX_PATH);
It will have all the memory location of szPath filled with '\0'