Given that integer array x has elements 1, 2, 3, 4, 5, what…

Questions

Given thаt integer аrrаy x has elements 1, 2, 3, 4, 5, what is оutput frоm the fоllowing loop? int i; for (i = 0; i < 4; ++i)  {     System.out.print(x[i] + x[i + 1] + " "); }