Question
a.
int arr[3] = (1,2,3);
b.
int arr(3) = {1,2,3};
c.
int arr[3] = {1,2,3};
d.
int arr(3) = (1,2,3);
Posted under Data Structures and Algorithms
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. How do you initialize an array in C?
Similar Questions
Discover Related MCQs
Q. How do you instantiate an array in Java?
View solution
Q. Which of the following is a correct way to declare a multidimensional array in Java?
View solution
Q. When does the ArrayIndexOutOfBoundsException occur?
View solution
Q. Which of the following concepts make extensive use of arrays?
View solution
Q. What are the advantages of arrays?
View solution
Q. What are the disadvantages of arrays?
View solution
Q. What is a bit array?
View solution
Q. Which of the following bitwise operations will you use to set a particular bit to 1?
View solution
Q. Which of the following bitwise operations will you use to set a particular bit to 0?
View solution
Q. Which of the following bitwise operations will you use to toggle a particular bit?
View solution
Q. Which of the following is an advantage of bit array?
View solution
Q. Identify the disadvantages of bit array.
View solution
Q. What are some of the applications of bit arrays?
View solution
Q. Which class in Java can be used to represent bit array?
View solution
Q. What is a dynamic array?
View solution
Q. What is meant by physical size in a dynamic array?
View solution
Q. The number of items used by the dynamic array contents is its __________
View solution
Q. How will you implement dynamic arrays in Java?
View solution
Q. Which of the following is the correct syntax to declare an ArrayList in Java?
View solution
Q. In what type of dynamic array do you divide the array into two parts?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Data Structures and Algorithms? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!