how to capitalize first letter of words in an array in C | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to capitalize first letter of words in an array in C

20th Dec 2020, 4:16 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
2 Answers
+ 1
thanks
21st Dec 2020, 8:48 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
0
Include <ctype.h> and use toupper() function to capitalize a letter. Watch out for spaces (word separator). http://www.cplusplus.com/reference/cctype/
21st Dec 2020, 4:11 AM
Ipang