How many arguments does the back() function take?

Answer: A
Explanation: The back() function returns a character from the string given as input. It takes in no arguments. It returns the last character that is present in the string. It can be used as “cout<<str.front();” which prints the last character from the variable “str”.
 

Tìm kiếm

Back
Top