1. Which cause a compiler error?






Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 02 Jun 2017 01.25 am
    Option B generates a compiler error: <identifier> expected. The compiler thinks you are trying to create two arrays because there are two array initialisers to the right of the equals, whereas your intention was to create one 3 x 3 two-dimensional array. To correct the problem and make option B compile you need to add an extra pair of curly brackets: int [ ] [ ] scores = { {2,7,6}, {9,3,45} };
Show Similar Question And Answers
QA->Dog bite can cause rabies. Which other animal can also cause rabies?....
QA->Dog bite can cause rabies. Which other animals can also cause rabies?....
QA->He was (a)/ punished severely (b)/ on sleeping (c)/ in the class (d) Spot the portion which carries error....
QA->“For that light represented something more than the immediate past, it represented the living, the eternal truths, reminding us of the right path, drawing us from error, taking this ancient country to freedom.” Who said these words when Gandhiji passed away?....
QA->An error in software or hardware is called is a bug. What is the alternative computer jargon for it?....
MCQ->Which of the following statements are correct about JIT? JIT compiler compiles instructions into machine code at run time. The code compiler by the JIT compiler runs under CLR. The instructions compiled by JIT compilers are written in native code. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code. The method is JIT compiled even if it is not called....
MCQ->In the following question, some part of the sentence may have errors. Find out which part of the sentence has an error and select the appropriate option. If a sentence is free from error, select 'No Error'. The receptionist gave us (A)/ much informations (B)/ which we needed. (C)/ No Error (D)....
MCQ->In the following question, some part of the sentence may have errors. Find out which part of the sentence has an error and select the appropriate option. If a sentence is free from error, select 'No Error'. Florence Nightingale(A)/ was called(B)/ Lady with the lamp.(C)/ No error(D)....
MCQ->In the following question, some part of the sentence may have errors. Find out which part of the sentence has an error and select the appropriate option. If a sentence is free from error, select 'No Error'. One of my friend(A)/ has gone(B)/ to Canada.(C)/ No error(D)....
MCQ->In the following question, some part of the sentence may have errors. Find out which part of the sentence has an error and select the appropriate option. If a sentence is free from error, select 'No Error'. The patient died(A)/despite he had recieved(B)/ the best medical help.(C)/ No error(D)....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution