TCHAR
#include <iostream>
using namespace std;
#include <windows.h>
int main()
{
TCHAR str[] = TEXT("the first");
cout<<(char*)str<<endl;//t
cout<<"the length of char array pointer after conversion is"<<strlen((char*)str)<<endl;//1
return 0;
}
char
#include <iostream>
using namespace std;
#include <windows.h>
int main()
{
char str[] = "the first";
cout<<"the length of char array is"<<strlen(str)<<endl;//9
char *str1 = str;
cout<<"the length of char array pointer is"<<strlen(str1)<<endl;;//9
char *str2 = (char*)str;
cout<<(char*)str<<endl;//the first
cout<<"the length of char array pointer after conversion is"<<strlen((char*)str)<<endl;//9
return 0;
}