Question: This program crashes with a segmentation fault, its supposed to loop over a null terminated string and computer something based on the string. 1) What
This program crashes with a segmentation fault, its supposed to loop over a null terminated string and computer something based on the string.

1) What is wrong with this program?
2) Can you draw a memory map with the variables in this function when it is called with "123". How do the variables change over time as the function executes?
3) what does this function do? whats the constant 48 for?
4) Can you rewrite this program using bracket syntax instead of pointers?
Thank you! Will rate immediately!
main.c 1 2 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
