Can we store string in array?

When strings are declared as character arrays, they are stored like other types of arrays in C . For example, if str[] is an auto variable then string is stored in stack segment, if it’s a global or static variable then stored in data segment, etc.

Sizin İçin Seçtik  What is an array in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *