Top | MCQs on Data Structures | DSA Quiz for Beginners | Question 3

Last Updated :
Discuss
Comments

What is the correct way to initialize values in an array?

my_array [5] = (5,3,4,2,7);

my_array [5] = {5;3;4;2;7};

my_array [5] = {5,3,4,2,7,5,6,7,8};

my_array [5] = {1,2,3,4,5};

Share your thoughts in the comments