String str = "CCCP"; char array[] = str.toCharArray(); Serial.println(array); // Prints 'CCCP'
toCharArray()