printf not printing to screen

Like @thejh said your stream seems to be buffered. Data is not yet written to the controlled sequence. Instead of fiddling with the buffer setting you could call fflush after each write to profit from the buffer and still enforce the desired behavior/display explicitly.

Cannot open include file: ‘stdio.h’ – Visual Studio Community 2017 – C++ Error

There are three ways to solve this issue. Ignore Precompiled Headers #1Steps: Project > Properties > Configuration Properties > C/C++ > Command Line > in the Additional Options box add /Y-. (Screenshot of Property Pages) > Ok > Remove #include “stdafx.h” Ignore Precompiled Headers #2Steps: File > New > Project > … > In the Application Wizard Window … Read more