CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Created for question by Farrux Yo'ldoshev
https://www.sololearn.com/Discuss/1196036
How will the following program be cpp
public class Program
{
public static void main(String[] args) {
String[] array = new String[10];
array[0] = "1";
array[1] = "2";
array[2] = "3";
array[3] = "4";
for(String s : array)
{
if(s==null)
{
System.out.println("Empty");
}
else
{
System.out.println(s);
}
}
}
}
*/
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run