#include <iostream>#include <string> std::string foo(){ return "foo";} int main(){ std::cout << (foo() = "bar") << "\n";}
Standard input is empty
bar
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!