Programming MCQS - QUESTION DETAILS

How do you declare an array in Java?
A. int[] arr;
B. int arr();
C. array arr;
D. array[] arr;

'int[] arr;' declares an array of integers in Java.

Similar Questions

How do you define a multi-line macro in C?






What is the purpose of the 'fgets' function in C?






How do you declare a function pointer in C?






How do you include a header file in C?






What is the role of the 'static' keyword in C?






What is the output of printf("%d", 10 % 3);?






What is the purpose of the 'fflush' function in C?






How do you declare a dynamic array in C?






What is the purpose of the 'strcmp' function in C?






Which of the following is not a bitwise operator in C?