how do u intialize an array in C
Answers
Answered by
1
Answer:
Initialization of arrays. The initializer for an array is a comma-separated list of constant expressions enclosed in braces ( { } ). The initializer is preceded by an equal sign ( = ). You do not need to initialize all elements in an array
Answered by
1
Explanation:
Arrays may be initialized when they are declared, just as any other variables.
Place the initialization data in curly {} braces following the equals sign. ...
An array may be partially initialized, by providing fewer data items than the size of the array.
Similar questions