Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top