int a[]={1,2,3,4,5}
This is :
1 static allocation
2 dynamic allocation
which? answer me
Answers
Answered by
5
Answer:
This is static allocation because you are allocating at your own will.
Explanation:
Dynamic Allocation is when the array gets the value at the output window from the user. In simple words, dynamic allocation means the array stores the value from the user who enters the values for the array.
Static Allocation is when the array is given the value while programming it or before the output window. In simple words, static allocation means the programmer gives the value of the array while programming.
Hope it helps
Similar questions