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);

Recommended Answers

All 2 Replies

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.

Also asked (and answered) here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.