char color [50];
in place of string color;
In cllasses can we write
no i cant it stoped after giving some random value
char color [50]; in place of string color; is this correct bcs in char color[50]; im not getting output
maybe because using char array is not that simple as using string thats why string are preferred everywhere. like char array should be terminated with null and some character restrictions are there …
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.