CTP 150 quiz 5|Questions with complete solutions | 100% verified| 8 pages
CTP 150 quiz 5 when an array is passed to a method ANSWER- the method has direct access to the original array, it is just passed as an object, and a reference to the array is passed what does the following statement do? char [] array1 = {a,b,c,d,e,f}; ANSWER- causes a syntax error int [] x = { 55, 33, 88, 22, 99, 11, 44, 66, 77); int a = 10; if (x[2] > x[5]) a = 5; else a = 8;
Written for
- Institution
- Ctp
- Course
- Ctp
Document information
- Uploaded on
- December 17, 2023
- Number of pages
- 8
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal