I have this code in my program but it doesn't print the numbers, but if I was to switch the "i" in the "((char)i)" to any normal character like say 'a', then it would print to the console.
Why doesn't this print to my console?
char debugStr[1000];
for(int i = 0; i < 1000; i++)
{
debugStr[i] = ((char)i);
}
OutputDebugStringA(debugStr);
below prints successfully a line of 1000 "a":
char debugStr[1000];
for(int i = 0; i < 1000; i++)
{
debugStr[i] = ((char)'a');
}
OutputDebugStringA(debugStr);