arrey &string
how could i call by value a string? please give me a example
1 2 3 4
|
int f(string s) // f called with a string parameter as call-by-value
{
cout << s << endl;
}
|
contrast with call-by-reference and perhaps call-by-address (google these)
Topic archived. No new replies allowed.