string[][]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • molaeiiut
    New Member
    • Mar 2008
    • 2

    string[][]

    Hi
    how to define 2darray of strings in C#?
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by molaeiiut
    Hi
    how to define 2darray of strings in C#?

    Please move this to .NET forum.
    Raghuram

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by molaeiiut
      Hi
      how to define 2darray of strings in C#?
      What do the tutorials say?

      Comment

      • todashah
        New Member
        • Feb 2008
        • 26

        #4
        You can declare 2darray of string in C# following way.

        string [,] s =new string [5,10];

        Here s is an array that hold 5 string & length
        of each string is 10 characters....

        Bye...Enjoy Coding

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by todashah
          You can declare 2darray of string in C# following way.

          string [,] s =new string [5,10];

          Here s is an array that hold 5 string & length
          of each string is 10 characters....

          Bye...Enjoy Coding
          If they'd read a tutorial they would have known that and much more about arrays as well.

          Comment

          Working...