InterviewSolution
Saved Bookmarks
| 1. |
The following functions are part of some class:void fun 1 (char s[ ],int x) { System.out.println(s); char temp;(i) What will be the output of fun1() when the value of s[ ]={‘J’,‘U’,‘N’,‘E’} and x = 1?(ii) What will be the output of fun2( ) when the value of n = ‘SCROLL”? (iii) State in one line what does the function fim1() do apart from recursion. |
|
Answer» (i) JUNE JNUE (ii) SCROLL LCROLS LLROCS LLORCS (iii) Reverses the part of a string from a specified location. |
|