Question: Suppose myArray is an array with five elements of type int. What is stored in myArray after the following Java code executes? 1 int
Suppose myArray is an array with five elements of type int. What is stored in myArray after the following Java code executes? 1 int r=0, i=0, a=23432; 2 int[] myArray = new int [5]; ~ 3 4 in N89 4 while(a!=0) 5 { 6 7 10 11 } r = a%10; a = a/10; myArray[i]=r; i++;
Step by Step Solution
3.45 Rating (148 Votes )
There are 3 Steps involved in it
The image shows a segment of Java code The code initializes an array named myArray meant to store in... View full answer
Get step-by-step solutions from verified subject matter experts
