Which of the following statements is valid?

A. int i(30);
B. int i[4] = {3, 4, 3, 2};
C. int i[] = {3, 4, 3, 2};
D. double d[30];
E. int[] i = {3, 4, 3, 2};


B. int i[4] = {3, 4, 3, 2};
C. int i[] = {3, 4, 3, 2};
D. double d[30];

Computer Science & Information Technology

You might also like to view...

(Digit Extraction) Complete an application that allows the user to enter a five-digit number into a JTextField. Your application should then separate the number into its indi- vidual digits and display each digit in five uneditable JTextFields (Fig. 5.36). All of the code you need to write should go inside the enterJButtonActionPerformed event handler. This event handler is declared in lines 124–127 of the template file DigitExtractor.java. Before you begin, copy the C:\Examples\Tutorial04\Exercises\DigitExtractor direc- tory to your C:\SimplyJava directory. You should start writing your code at line 126 in the file. Obtain the number input by the user in enterNumberJTextField, convert it to an int and store it in int variable number. [Hint: You can use the % operato

Computer Science & Information Technology

AV software on a computer must have its ____ files regularly updated by downloads from the Internet.

A. behavior B. program C. control D. signature

Computer Science & Information Technology

When a message box appears during the execution of a macro, the frequency and duration of the ________ depend on your computer's hardware

A) SelectObject B) Beep C) MessageBox D) AutoExec

Computer Science & Information Technology

By using ____ pixels, most visitors to the Web page will not have to scroll to see your information

a. 1200 x 700 b. 1050 x 800 c. 800 x 600 d. 1024 x 768

Computer Science & Information Technology