Is any direct function is available for the complement of the char variable
Once again, the answer is the same: ~.