What does such fucntion actually return? Must be zero? int func { std::cout << “hello world\n” << std::endl; //no return expression.};

前端 未结 0 1220
栀梦
栀梦 2020-12-11 13:24

What does such fucntion actually return? Must be zero?

You see there is no return expression.

Does the result depend on the compiler?



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题