How is an array of 5 characters stored in memory?

Let’s declare an array of 5-characters below and look at how the information is stored in memory. The above declaration creates an array of 5-contiguous bytes on the stack for your use. e.g., you can visualize the 5-bytes of memory initialized to zero as follows:
For More Information Please Refer:

You May Also Like to Read: