I'm trying to make static list that can add element in list. I know that's know the good way to make list but it's just experiment
only 5 digits allow in list
Program supposed to give result like this
add digit 1 in array then show array = 1
add digit 2 in array then show array = 1 2
add digit 3 in array then show array = 1 2 3
add digit 4 in array then show array = 1 2 3 4
add digit 5 in array then show array = 1 2 3 4 5
When array exceed limit size, stop adding digit
I need a function that add one digit in array and show the array digitsCode:#include<stdio.h> int main () { int i; int array[5]; return 0; }
I'm stuck with function I don't understand what's logic need to add one digit