Is one's complement in C the same in Logic ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is one's complement in C the same in Logic ?

what's the difference between them. And How is the one's complement evaluated ?

2nd Feb 2018, 8:10 AM
Daniel Tarerefa
Daniel Tarerefa - avatar
1 Answer
0
one's complement of a binary number is simply obtained by flipping each bit. it is the same in c as well as logic.
3rd Feb 2018, 7:35 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar