Arrays can be initialized in the declaration statement itself? State whether the statement is True (or) False And Justify it
Answers
Answered by
0
yes they can be initialised with declaration
eg
int a[5]={ 1,2,3,4,5};
eg
int a[5]={ 1,2,3,4,5};
Answered by
0
The arrays cannot be initialised in the declaration statement itself as they need some code or formula to do the task.
They cannot be et to arbitrary values in one statement.
There are also possibility to keep templates that are set at declaration time. so the statement is false.
Similar questions