Answer the question
In order to leave comments, you need to log in
How to pass a string to a function parameter?
Hello everyone, how can I pass an argument to a function as a string?
Something like this?
But to me the error is I can't pass the string.
void foo(char a[]) {}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question