Advertisements
Advertisements
प्रश्न
Write note on Array of strings.
टिप्पणी लिखिए
उत्तर
An array of strings is a two – dimensional character array. The size of the first Index (rows) denotes the number of strings and the size of the second index (columns) denotes the maximum length of each string. Usually, an array of strings are declared in such a way to accommodate the null character at the end of each string. For example, the 2 – D array has the declaration:
char name [7][10];
In the above declaration,
No. of rows = 7;
No. of columns =10;
We can store 7 strings each with a maximum length of 10 characters.
shaalaa.com
Array of Strings
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?