Which of the following statements about arrays is syntactically wrong ?

Software Engineering Mcqs

Which of the following statements about arrays is syntactically wrong ?

(A)  arrayName[] p = new arrayName[5];

(B)  arrayName p[][] = new arrayName[2][];

(C)  arrayName[] p [];

(D)  arrayName p[5];



Share this... Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Share on Whatsapp
Whatsapp

  • IF YOU THINK THAT ABOVE POSTED MCQ IS WRONG.

  • PLEASE COMMENT BELOW WITH CORRECT ANSWER AND ITS DETAIL EXPLANATION.

  • Related Mcqs


    Leave a Reply

    Your email address will not be published. Required fields are marked *