Is any direct function is available for the complement of the char variable
I think this is for the Bit variable what about the char variable
The answer is the same: ~.
How to take ones compliment of char variable
"I think this is for the Bit variable"
You are mistaken - see your 'C' textbook.
As already stated, this is a standard 'C' operator - Bit variables are a Keil extension.
You do have a 'C' textbook, don't you?
Why do you have this aversion to reading it?
http://www.keil.com/forum/docs/thread8910.asp
Once again, the answer is the same: ~.
Is to complement your library with a 'pure' C text book (NOT "C for the '51"). Now for something tryly awful: you also have to read it.
Erik
"you also have to read it"
Or at least look at the index - and find where the Complement Operator is described!
just a wild guess
The OP is under the assumption that "C for the '51" (whatever the actual title) is a C book.