What is the XNOR equation in C programming?

Status
Not open for further replies.

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
Hi,

What is the XNOR equation in C programming?

I already found out the equation:
Y = (AxB) + (/A x /B)

XNOR Table:
AB | Y
00 | 1
01 | 0
10 | 0
11 | 1

eg. A = 0000 0001, B = 1000 0000

How can i get the answer Y?

Thank You.
 

xnor equation

Using binary notation:

0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0
------------------
0 1 1 1 1 1 1 0

In other words, you XNOR relevant bits of each number ..

Regards,
IanP
 

xnor c programming

In C ^ is ex-or operator
and ~ is complement

to get ex-nor use ~(a^b)
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…