Hi,
I am total new in C. I have an array, then i loop it to get array elements. How can i add this array element into existing array? thank!
char arr[] = {1};
for (int i = 0; i < sizeof(arr)/sizeof(arr[0]); i++ ) {
something happend here = arr[i];
}
printf("Result: %i:%i", arr[0], arr[1]); // Result: 1:1 (<- is equal to: char arr[] = {1,1};)