English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Write note on Array of strings. - Computer Science

Advertisements
Advertisements

Question

Write note on Array of strings.

Short Note

Solution

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
  Is there an error in this question or solution?
Chapter 12: Arrays and Structures - Evaluation - Section - C [Page 224]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 12 Arrays and Structures
Evaluation - Section - C | Q 2. | Page 224
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×