#include int main(){ /* Eclipse CDT workaround to prevent buffering of output in console.*/ setvbuf(stdout, NULL, _IONBF, 0 ); printf("hello world\n"); char s[25]; printf("Press enter to continue"); //Actually reads string from command line fgets(s, 25, stdin); return 0; }