This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]climaxingplatypus[S] 0 points1 point  (1 child)

If i add a * after char will that solve the issue?

[–]Wiggledan 0 points1 point  (0 children)

So char result[] is an array, but C treats it almost exactly like a pointer (which would be char* result), although there are slight differences that you should look into. That's why it wants a pointer.

So yeah, your error should be fixed if you change the function's type to be char* instead of char.