Unformatted text preview: program I have mentioned it in the main so that it is used in the whole program. d. The math.h library was not declared at the start of the program to use the method ‘sqrt’ e. The code now compiles and outputs the following result : 1.725***1.31339 2. None of the statements will result in a run-time error. a. Const int X_SIZE = 10; compiles and does not return any error b. int x[X_SIZE]; returns an error ‘ X_SIZE’ was not declared in this scope c. x[X_SIZE] = 5; returns an error that ‘x’ and X_SIZE were not declared d. x[X_SIZE-1] = -95; returns an error that ‘x’ and X_SIZE were not declared...
View Full Document
This document was uploaded on 10/20/2011.
- Fall '09