Can you put a string in a called function, where the string is in the parameter? In C++?
For example,
void call(test)
{
if test = "hello"
{
cout << "hi";
}
}
void main()
{
call("hello")
}
would I get an output of "hi"?
forgot to add & next to void call(&test), if it matter...but the main question is would "hello" be passed?