Lack Of Screen Output Problem's Solution While Developed A C/C++ Project With Eclipse IDE

If you develop a C or C++ project by using Eclipse IDE, the screen output may not be seen. In such a case, add following code snipped on top of the main function:
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);

© 2019 All rights reserved. Codesenior.COM