Computer Science, asked by rohitbittu6976, 10 months ago

How to initialize every element of 2d array with same value in c

Answers

Answered by Anonymous
6

Explanation:

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

Answered by Shashank9999
0

Hi friend

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}

Hope it helps you friend.

Similar questions