Converting a Char Array to a String

Converting a Char Array to a String

A char array is an ordered collection of characters stored at contiguous memory locations, accessible by index. Like an array of integers, its access is by index. Additionally, unlike strings which cannot be altered directly. A char array’s characters may be modified directly without having to access another memory location first. An understanding of the…