using nested printf statements giving strange output

后端 未结 3 1163
长情又很酷
长情又很酷 2021-01-23 17:55

I recently came across this code and I\'m unable to understand how it works

#include
int main(){
    printf(\"Line 1\\n\",
    printf(\"Line 2\\n\         


        
3条回答
  •  灰色年华
    2021-01-23 18:36

    You need to evaluate the parameter of a function before actually calling it. So the most inner print is called first.

提交回复
热议问题