I have a project where I need to add binary numbers using C language. I don't know where to start. Help?
harunosakura
0
Newbie Poster
Recommended Answers
Jump to PostDo you mean you have strings of 1s and 0s that you need to add as if they were binary numbers?
All actual integers are held in binary (on the whole) anyway so adding 2 binary digits is as simple as
int a = 2; // …
Jump to PostStart by asking for the binary number. Then check the number for illegal characters.
All 8 Replies
Banfa
597
Posting Pro
Featured Poster
harunosakura
0
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
harunosakura
0
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Lerilaine
0
Newbie Poster
vinitmittal2008
37
Junior Poster
Lerilaine
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.