How do you store a string in a structure?

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 a typedef struct?

Leave a Reply

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

How do you store a string in a structure?

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's the price of Shiba Inu on Coinbase?

Leave a Reply

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