what wrong in this code cause appearance of numbers in funstion call instead hello world words
& how to make good function call
& how to use goto operator in function or many case in switch
the code is
#include <iostream>
using namespace std;
void mystring();
int main ()
{
cout << mystring << endl;
return 0;
}
In order to properly call the function mystring, you must follow the word with parenthesis, like this: mystring()
If you are simply trying to call the mystring function so that it will print the words "hello world" for you, then your call to that function should simply look like this:
1 2 3 4 5
int main ()
{
mystring();
return 0;
}
You don't need to use cout in your main function, because you are using it in the mystring function.