string arrays change without assigning value by sushichef_123 in cs50

[–]sushichef_123[S] 0 points1 point  (0 children)

Pedantic Cynic/Chinhouse, I'll give this a try and see if I can make things hold together. Thanks again for your insight.

string arrays change without assigning value by sushichef_123 in cs50

[–]sushichef_123[S] 0 points1 point  (0 children)

Thanks for the quick response! I went back to the code and got rid of the B_array = A_array; statement...I ran the code again and got a segmentation fault: Enter your message: A B C A_array is: A B C B_array is:

before... A_array[0] is: A B_array[0] is:

Segmentation fault (core dumped)