strlen for char arrays

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manju23reddy
    New Member
    • Aug 2008
    • 7

    strlen for char arrays

    hi

    char a[2][4] = {"one", "two"};

    for the above "a" can i use strlen and if so how if not then how to find strlen of "a".
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    You do have a compiler where you can try all these things right?

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by manju23reddy
      hi

      char a[2][4] = {"one", "two"};

      for the above "a" can i use strlen and if so how if not then how to find strlen of "a".
      You have been asking a bunch of completely unrelated, basic questions today.
      Homework mayhap? See the forum guidelines w.r.t. your homework.

      kind regards,

      Jos (mod)

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by manju23reddy
        hi

        char a[2][4] = {"one", "two"};

        for the above "a" can i use strlen and if so how if not then how to find strlen of "a".
        manju23reddy-

        Please read through the Posting Guidelines of this site. As your infractions are so frequent and wide-ranging, I cannot list them all here (flooding, format, titles, code tags, specific questions, attempting the problem first, and on and on).

        If you fail to follow these guidelines in any future posts, action will be taken against your account in accordance with the Posting Guidelines. If you have questions about what is and is not appropriate, you may PM myself, another moderator, or a site admin.

        Thanks,

        sicarie

        Comment

        Working...