functions


string print(string id){
return id;
}

What is the outcome of statement cout<< print(string id); used inside main()?
There is no output because there is a syntax error in the statement cout << print(string id); and thus the program fails to compile before it can ever run.
Last edited on
Topic archived. No new replies allowed.