Question: How do you initialize an array in C?

Options

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);

Click to view Correct Answer

Previous || Next

Data Structure Array Array Operations more questions

Which of the following is illegal?

Which of the following is not a valid variable name....

Which of the following function declaration is illegal?

What is the correct syntax of declaring array of pointers....

How do you instantiate an array in Java?

Which of the following correctly declares an array?

What is the signature of math in function using command....

Which of the following is not a valid C variable....

What members do the structure returned by function div() contains?

What is the prototype of strcoll() function?

Data Structure Adjacency List more Online Exam Quiz

Dairy Engineering Tough

Dairy Engineering Tricky

Data Structure Adjacency List

Data Structure Adjacency Matrix

Data Structure Aptitude Test

Data Structure Assembly Line Scheduling

Data Structure Assessment

Data Structure Avl Tree

Data Structure Balanced Partition

Data Structure Binary Heap