Value of index randomly changes in dynamic character array during for loop
For one of my assignments in my C book, I have to find a way to treat characters as integers. So, I wrote a program that takes an array of characters that represent integers, add them up, and output the result. In the following program, I attempt to ‘add’ the strings ‘123’ and ‘321’ which should result in ‘444’.
Why does c delete the null character between two char arrays initialized in sequence?
I am learning c. I have the following code: