cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
functions
functions
Sep 11, 2014 at 2:36am UTC
Ashneel69
(1)
string print(string id){
return id;
}
What is the outcome of statement cout<< print(string id); used inside main()?
Sep 11, 2014 at 2:38am UTC
LB
(13399)
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
Sep 11, 2014 at 2:38am UTC
Topic archived. No new replies allowed.