CSC 1351 : Review
Document Summary
Does it apply for a class, how about for a function explain your answer. (a) the statement "int as[], bs[];" declares two arrays in one statement. What would be the value of as? (d) show the output of the following code-segment: double x = 35. 19152; System. out. print("printing x with different number of digits "); System. out. println("%f, %2. 3f, %2. 2f, %2. 1f\n", x, x, x, x); (e) show the results of (int)x, math. oor(x), math. ceil(x), and math. round(x) for each value of x given below. x. Show the output of the following: int[] a = {1, 2, 3, 4, 5, 6}; Show the output of the following; clearly indicate the blank spaces. int nums[] = { -100, -2, 1023, 1 }, length = nums. length; for (i=0; i