String Taxonomy In C Language


Visit the syllabus for more information about c

In C Language, We can store a string in fixed-length format either variable-length format.

String store two type format:-

(I) Fixed Length:- When storing the string in a fixed-length format, you need to specify an appropriate size for the string variable. If the size is too small, then you will not be able to store all data. If the size is too large, then unnecessarily memory space will be wasted.

(II) Variable Length:- A better option is to use a variable-length format in which the string can be expanded or contracted to accommodate the elements in it.

    There, Variable Length two types:

    (a) Length Controlled:- In a length controlled string, you need to specify the number of characters in the string. This count is used by string manipulation functions to determine the actual length of the string variable.
    (b) Delimited:- In this format string is entered with a delimiter. The delimiter is then used to identify the end of the string.

disclaimer! This article for tech updates, not promoted by any company, means that's with proper credits in there if any copyright post is there. Helps us to grow more by allowing the notification and subscribing by email! #suspensecreator
أحدث أقدم
Post ADS 1
Post ADS 1