Ask Question

Which two are valid array declarations? Choose all correct answers) □uint size; □ int size!; □int array size; int[] size;

+2
Answers (1)
  1. 27 May, 16:00
    0
    Answer: int[] size;

    int size[];

    Explanation: The declaration of the array is done with the appropriate type of datatype and associated with the length of the array in the "[]"brackets. The number input present in the "[]" defines about the length of the string that is being used in the particular program.

    int[] size; and int size[]; are the correct declaration and other two options are incorrect because in []int size; length cannot be given before datatype declaration and 'int array size " does not have"[]" to mention the array length.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which two are valid array declarations? Choose all correct answers) □uint size; □ int size!; □int array size; int[] size; ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers