How can you initialize an array of two characters to 'a' and 'b'?
a. char[] charArray = new char[2]; charArray = {'a', 'b'};
b. char[2] charArray = {'a', 'b'};
c. char[] charArray = {'a', 'b'};
d. char[] charArray = new char[]{'a', 'b'};
c. char[] charArray = {'a', 'b'};
d. char[] charArray = new char[]{'a', 'b'};
You might also like to view...
What is wrong with the following code?
int total, number; int counter = 0; while (counter < 10) { cin >> number; total = total + number; counter = counter + 1; }
How many points are in an inch?
What will be an ideal response?
In the accompanying figure, Item 2 points to the ____ gallery.
A. Rows and Columns B. SmartArt C. Table Styles D. Border Styles
After receiving a call from an executive, a technician walks into a meeting room to find that the projector is not showing the screen of the executive's laptop. The projector shows a message that reads "No video signal". Which of the following is the FIRST thing that the technician should do?
A. Adjust the laptop's screen brightness B. Replace the projector's bulb C. Verify the VGA cable is connected D. Ensure secondary display is enabled