-8

I have a theoretical question about c++ arrays and strings. What is declaration of char [10][100]? How many strings it may have and what is lenght of array?

Zeljo
  • 25
  • 1
  • 7

2 Answers2

0

it is a two dimensional character array

now assuming your second dimension as a string [100 characters]

so simply put it will be 10 strings with each max length of 100

JaYdipD
  • 40
  • 10
-1

The declaration char [10][100] represents a two-dimensional array of characters in C++. It is an array of size 10, where each element is an array of size 100. In other words, it is an array with 10 rows and 100 columns, where each element can hold a single character.