Discussion Forum : Searching And Modifying A String
Question -

Which of these method of class String is used to obtain length of String object?

Options:
A .  get()
B .  Sizeof()
C .  lengthof()
D .  length()
Answer: Option D

Method length() of string class is used to get the length of the object which invoked method length().



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *