To declare and initialize character array :

  1. char s[] = { 'a', 'b' , 'c' };

  2. char s[] = "abc";

  3. both correct

  4. both wrong


Correct Option: C

Find more quizzes: