MCQ
Which of the following character variable has not been assigned the values properly?
  • A
    char P[6]= "PURVA";
  • B
    char B[6]= {‘P’. ‘U’. 'R’. ‘V’. ‘A’.’\0’};
  • C
    char SI 1= { ‘G’, ‘U’, ‘J’, ‘A’, ‘R’, ‘A’ , ‘T’,’\0’};
  • char A[ ] = 'INDIA':

Answer

Correct option: D.
char A[ ] = 'INDIA':
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