MCQ
Which of the following is/are the proper example/s of declaring an array with initial values of data elements?
  • A
    int marks[ ]={90,70,77);
  • B
    int [ ] marks={90, 70, 77);
  • Both A & B
  • D
    int marks [90, 70, 77];

Answer

Correct option: C.
Both A & B
C

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