Question: The expected outcome of this is the program will print out the value 430. BUT ! This is not always the case, depending on when

 The expected outcome of this is the program will print out

The expected outcome of this is the program will print out the value 430. BUT ! This is not always the case, depending on when the program is run and/or what computer it is run on.

a.) why is it possible that the output will be not as expected. (i.e. whats wrong)

b.) what correction needs to be made to ensure the correct outcome each time

1.) Consider the following program: #include #include int main() char s[10], t[10]; int i, j; strcpy (s, "frog"); for (i=0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!