What is string in C with example?

In C programming, a string is a sequence of characters terminated with a null character \0 . For example: char c[] = “c string”; When the compiler encounters a sequence of characters enclosed in the double quotation marks, it appends a null character \0 at the end by default.

Sizin İçin Seçtik  Apple kaç adet iPhone satıldı?

Leave a Reply

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