Business Studies, asked by panditsaksham7, 8 months ago

how do you initialize an array in c​

Answers

Answered by kilwantsingh
1

Explanation:

An array is a variable that can store multiple values. For example, if you want to store 100 integers, you can create an array for it.

int data[100];

How to declare an array?

dataType arrayName[arraySize];

For example,

float mark[5];

Here, we declared an array, mark, of floating-point type. And its size is 5. Meaning, it can hold 5 floating-point values.

It's important to note that the size and type of an array cannot be changed once it is declared.

Similar questions