Amit Jagesha シ Amit Jagesha シ - 6 days ago 7
C++ Question

How can i call below C++ function with size_t* in Objective c ios

I want to call this function void getResult(char, size_t*) in objective c.How can i do this please help me.
It give me below error show in image.

enter image description here

Answer

It seems your getResult function expects to get second parameter by reference. You can't pass function result by reference. Assign it to actual variable first and then pass reference to that.

unsigned long sizeOfC = sizeof(c);
c->getResult(array1, &sizeOfC);
Comments