Showing Error In this very basic program!

The below written very basic code is giving me a warning and this program is not running - “warning: ISO C++ forbids converting a string constant to char*”.
Why there this error is? and what is the solution?

#include
#include
using namespace std;

class car{

public:
int model_no;
int price;
char name[20];
car(int m, int p, char *n){
model_no = m;
price = p;
strcpy(name, n);
}

void print(){
     cout<<model_no<<endl;
     cout<<price<< endl;
     cout<<name<<endl;
}

};

int main(){

car c(100,200,"Ferrari");

c.print();
return 0;

}

@subham221 use
char cars_name[ ] = {‘f’,‘e’,‘r’,‘r’,‘a’,‘r’,‘i’,’\0’};
car c(100,200,cars_name);
warning is because constructor expects a char array whereas you are passing a string!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.