Why is printf before exevp not running?

后端 未结 1 621
悲哀的现实
悲哀的现实 2021-01-03 01:43

I get an output of \"hi!\". Why is this not also printing \"something\"?

#include 
#include 

int main(int argc, char** argv)          


        
1条回答
  •  囚心锁ツ
    2021-01-03 02:20

    The string is in the io buffer - so pull the chain and flush that buffer

    i.e. add

    fflush(stdout)
    

    after the printf (or add \n to the printf)

    0 讨论(0)
提交回复
热议问题