What does creating a pointer of a function do? I'm not used to getValue being a pointer.
char* getValue(char* string);
I'm used to something like this.
char getValue(char* string);
What does creating a pointer of a function do? I'm not used to getValue being a pointer.
char* getValue(char* string);
I'm used to something like this.
char getValue(char* string);
The first function returns a pointer to char
, the second function returns a char
. The function itself isn't a pointer in this case, the return value is.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.