#include void hang_demo() { int i = 0; // Infinite loop: the condition will always be true while (1) { i++; // i will keep increasing, and the loop never stops } printf("This line will never be reached.\n"); } int main() { printf("Program started\n"); hang_demo(); // Call the function that causes a hang printf("This line won't be printed due to the hang\n"); return 0; }