Friday, October 26, 2018

Strings

1 comments

Strings

  String is a group of characters or like set of characters. we called string are arrays of characters. So, we called string is a word.
      String = Set of Characters
      Array of Characters = String (Technical)
 Like: -
 


1
2
3
4
5
6
7
 char x[] = "satya";
    OR
 char x[50] = "satya";
    OR
 char x[] = {'s','a','t','y','a','\0'};
    OR
 char x[6] = {'s','a','t','y','a','\0'};

1 comment: