Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        6年前关闭。
                                                                                            
                
        
int main()
{
    printf("main started");
    for(;;) {}
    return 0;
}


问题是它不打印“ main starts”。没关系,for循环中的内容以及循环之前有多少条语句。

最佳答案

在输出末尾放置换行符。没有它,文本将进入输出缓冲区,但不会被刷新。

10-07 13:39
查看更多