C - printf() not working but puts() is working fine

前端 未结 3 653
暗喜
暗喜 2021-01-24 23:31
void read_class_information(head* beginning, int scale_type) {
    puts(\"hello\");
    // printf(\"hello\");
}

I have a simple function called by main

3条回答
  •  不知归路
    2021-01-24 23:57

    Try using the new line character ('\n') at the end of your statement, also make sure you have the appropriate headers.

提交回复
热议问题