5 years ago in Java Arrays

What is the output of this program?
class array_output {
public static void main(String args[])
{
char array_variable [] = new char[10];
for (int i = 0; i < 10; ++i) {
array_variable[i] = 'i';
System.out.print(array_variable[i] + "");
}
}
}

[A] 1 2 3 4 5 6 7 8 9 10
[B] 0 1 2 3 4 5 6 7 8 9 10
[C] i j k l m n o p q r
[D] i i i i i i i i i i
Loading...
Next Question

Overall Stats

Attempted 330
Correct 107
Incorrect 67
Viewed 156

Answers

Guest
Guest
Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying 0 1 2 3 4 5 6 7 8 9 10 is correct answer

Zo Go
Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying i i i i i i i i i i is correct answer

Fâtïmá Żahřâ Zágñane
Fâtïmá Żahřâ Zágñane - 1 month ago

Fâtïmá Żahřâ Zágñane from Casablanca, Morocco is saying i i i i i i i i i i is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying i i i i i i i i i i is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying i i i i i i i i i i is correct answer

Related Questions