Question: Suppose you have written a C program getBread.c and it reads from stdin as many lines of input as possible (each line can be assumed
Suppose you have written a C program getBread.c and it reads from stdin as many lines of input as possible (each line can be assumed to be a nonnegative integer). Similar to the behavior of the previous program getSalad.s, the program should compute and print the values of some function of all input numbers (one per line). The math function f is much more complicated than the square root function and you want to test your own implementation of this function in the program on a selected set of 50 input integers and see whether it produces the correct outputs. The program may have bugs and you may need to revise the code and test it many times on those 50 integers. What would you do, other than hard-coding the 50 integers into your program source code, to avoid re- typing the 50 input integers each time you want to test your code after revising and re-compiling it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
