Hi Im new to C++
Have just learnt there is no string datatype
and instead char arrays are used.
Whats the best way to assign a string to a char array?
This is what im doing, not sure if theres an easier way?
Code:
char gtest[10];
strcpy(gtest,"test");
Thanks in advance.