Is it possible to add two hexadecimal numbers in C?
If so, i would request someone to help wit the method or the logic asap.
thank you :)
mathmagic
0
Newbie Poster
Recommended Answers
Jump to Post>Is it possible to add two hexadecimal numbers in C?
Yes:int a = 0xA; int b = 0xB; printf ( "%x\n", a + b );
All 4 Replies
Narue
5,707
Bad Cop
Team Colleague
mathmagic
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
jephthah
1,888
Posting Maven
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.