still works in C ++, but it appeared in my book, and I don’t understand what it is for:
MyClass * FunctionTwo (MyClass *testClass) {
return 0;
}
My question is what is the meaning of the first indirectness operator
(MyClass *[<- this one] FunctionTwo(MyClass *testClass))?
I tried to make such a function in code blocks with and without the first *, and I did not see any difference in how it was launched or displayed:
int *testFunc(int *in) {
cout << in << endl;
cout << *in << endl;
return 0;
}
int testFuncTwo(int *in) {
cout << in << endl;
cout << *in << endl;
return 0;
}
I could not find anywhere, explaining about it in my book.
Thank,
Charles
source
share