InterviewSolution
Saved Bookmarks
| 1. |
If two index are given as argument to substring function then ___________________(a) String of length equal to sum of two arguments is returned(b) String starting from first index and of length equal to send argument(c) String starting from first index and of length equal to sum of two arguments(d) String starting from first index and ending at second index position |
|
Answer» The correct option is (d) String starting from first index and ending at second index position Easy explanation - A value of string type is returned from this function. The returned string is a substring that starts from the first argument position, till the second index position. The indices must be less than the length of actual string. |
|