I'm only certified for beginner questions, but I'll take a flying wild-asmed guess...
There's an issue about "flushing the buffer" - "printf" doesn't really output anything until you "flush the buffer". Normally, this would happen with a newline sequence, or when your program exits. You can also "fflush(stdout)". If your string doesn't end with "13, 10, 0", this might cause different behavior depending on whether it's redirected or not.
Just a guess - it could also be a "Microsoft problem".
Best,
Frank