Why does the following code print out only one character with printf and some hex code with cout when it is supposed to print out the string in s??
Code:
#include<iostream>
#include<Windows.h>
#include<stdio.h>
int main()
{
TCHAR s[90];
GetModuleFileName(NULL,s,90);
printf("%s",s);
std::cout<<s;
}