A string is a collection of characters represented by a single data type, whereas an array is a collection of variables of similar types. Strings are a data type in an array, which is a data structure.