I am going through a problem for the last few minutes. I tried to solve it in many ways but still couldn’t get rid of this. I’ve learning c++ programming language from last week. So, you can treat me as a novice in it.
I have a c++ program and I am trying to pass arguments through a function in it but it throws an error c++ invalid conversion from const char* to char while I hit the run button.
Find my code snippet below and provide me a legit solution.
And the function I tried to call:
void Printfunc(int a, char *loc, char *stream)
Thanks. Good day!