How many arguments does the at() function take?

Answer: B
Explanation: The at() function returns a character from the string given as input. It takes 1 argument. It returns the character that is present in the string as specified by the argument. It can be used as “cout<<str.at(1);” which prints the second character from the variable “str”.
 

Tìm kiếm

Back
Top