Whitespace
--------------------------------------------
What do you want inside font colour,text,or face
Answer:
The answer to this question is "C++ functions can't return array type value".
Explanation:
In C++ language the method is a collection of declarations executing a process together. It is a statement, that tells the compiler to return and accept parameters of a function. In C++, it includes many standardized functions, which can be called by the software, and other choices were wrong, which can be described as follows:
- In c++ function can't return array type always.
- function is not address based.
- If array is local to function, but function will not return array value.
Answer:
The correct answer to this question is given below in the explanation section.
Explanation:
The correct answer to this question is : 4.
When you run this program in Java. The output produce by this program is 4
The given code is:
import java.util.ArrayList;
public class arrayList7
{
public static void main(String[] args) {
ArrayList one = new ArrayList ();
Integer count=3;
count=count+1;
one.add(2);
one.add(count);
System.out.println(one.get(1));
}
}
This code store the value in ArrayList one variable. It first adds 2 at zero indexes and 4 at first index. When you print the value at index one, you will get the output 4. because the count variable contains 4. If you want to print 2, then you specify the print statement that prints the value at index zero. eg.
System.out.println(one.get(0));