Computer Science, asked by deepthidhanraj3, 4 months ago

How can we intialize an array in c language?

Answers

Answered by redpanda20
21

Answer:

Below are some of the different ways in which all elements of an array can be initialized to the same value: Initializer List: To initialize an array in C with the same value, the naive way is to provide an initializer list. We use this with small arrays. int num[5] = {1, 1, 1, 1, 1};

Similar questions