90.6k views
5 votes
. Which two are valid array declarations? Choose all correct answers) □uint size; □ int size!; □int array size; int[] size;

User AndrewCox
by
7.9k points

1 Answer

1 vote

Answer:

  • int size[];
  • int []size;

Step-by-step explanation: The declaration of the size of array range can be done by the methods int size[] and int[] size methods only where the length of the array can be mentioned in the"[]".

Other methods mention in the option are not suitable as" [] int size" declaration of length is mentioned before choosing the data type .Also "int array size;" is a false declaration because it also does not specify the correct datatype .

User Eric Barr
by
7.2k points