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