ICSE Class 10 Computer Applications
Question 4 of 46
String Handling — Question 4
Back to all questions 4
Question Question 2(iii)
Mention the purpose and syntax of charAt() method.
The charAt() method accepts an index number as its argument and returns the character present at that particular index. The index of the string ranges from 0 to length() - 1.
Syntax:stringObject.charAt(index)