CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

need byte operation...

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
karthickiw



Joined: 09 Aug 2007
Posts: 82
Location: TN, India

View user's profile Send private message Send e-mail

need byte operation...
PostPosted: Sat Jun 20, 2009 11:57 pm     Reply with quote

Dear CCS Friends,

I want to convert 0 to 1 and 1 to 0 in single byte of data.

For example.

'a' is variable, it contains 00001111 binary data, that binary data is convert 0 to 1 and 1 to 0 and save into other variable ( like b=0b11110000 ).
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jun 21, 2009 12:51 am     Reply with quote

Please get a book on the C language. You need to learn the C operators.
Also look at online tutorials. Example:
http://www.java2s.com/Tutorial/C/0100__Operator/Complement.htm
http://msdn.microsoft.com/en-us/library/dxt4z71k(VS.71).aspx
karthickiw



Joined: 09 Aug 2007
Posts: 82
Location: TN, India

View user's profile Send private message Send e-mail

Thank you
PostPosted: Sun Jun 21, 2009 6:58 am     Reply with quote

PCM programmer wrote:
Please get a book on the C language. You need to learn the C operators.
Also look at online tutorials. Example:
http://www.java2s.com/Tutorial/C/0100__Operator/Complement.htm
http://msdn.microsoft.com/en-us/library/dxt4z71k(VS.71).aspx


Thank you PCM, I see this type of operation. I searched on help file, but I don't got this operation help. thanking lot....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group