- 2

Given (name = “john smith”), what will name.title() return?

Anyone???

25th Aug 2019, 5:11 AM
Ashutosh kumar
Ashutosh kumar - avatar
4 odpowiedzi
+ 4
It will return John Smith. Title case means each word will have first letter in upper case.
25th Aug 2019, 7:10 AM
Amit Saxena
Amit Saxena - avatar
+ 3
A copy of the string with the first letter of each word capitalized. But y do u ask? Just try stuff like that or read it up in the documentation.
25th Aug 2019, 6:38 AM
Thoq!
Thoq! - avatar
+ 1
Can you give a code example
25th Aug 2019, 5:44 AM
Potato Squad
Potato Squad - avatar
+ 1
char fputs(name,stdout)
30th Jul 2021, 5:47 PM
Arunim
Arunim - avatar