awk convert first character to lowercase

C++
echo example | awk '{$1=toupper(substr($1,0,1))substr($1,2)}1'
Example		#Example first upppercased outputedecho EXAMPLE | awk '{$1=tolower(substr($1,0,1))substr($1,2)}1'
eXAMPLE		#Example first lowercased outputedecho EXAMPLE | awk '{$1=tolower(substr($1,0,1))substr($1,2)}1'
eXAMLPLE		#Example first lowercased outputed
Source

Also in C++: