MCQ
Which of the following is a valid character array to store the word/string SWAMP?
  • A
    char name [6]= "PURVA";
  • B
    char name [5]= "PURVA";
  • C
    char name [6]= ('P. 'U'. 'R. V. 10);
  • both A and C

Answer

Correct option: D.
both A and C
d

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free