Related to function defined

here in this car(int no, float price ,char *n);
in this code we call it like car(112,344,“bmw”);
why we use n can’t we simple char n instead of charn
or we can use string n. plz expalin.

Hello @avverma11057 char*n means that we dont need to pass array size.

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.