Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

implement NAND gate logic in C code without using any
bitwise operatior.

Answer Posted / senthil.cp

NAND using Bitwise operators
c = ~(a & b) OR
c = ~a | ~b

NAND without using bitwise operators

c = (0xFF - a) + (0xFF - b)

Is This Answer Correct ?    35 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use return in c?

950


When is a “switch” statement preferable over an “if” statement?

1070


Why is python slower than c?

1019


Ow can I insert or delete a line (or record) in the middle of a file?

951


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1881


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1167


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

1088


How to get string length of given string in c?

1008


What do mean by network ?

1098


Why do we use pointer to pointer in c?

1019


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2144


Is int a keyword in c?

905


Why & is used in c?

1116


The file stdio.h, what does it contain?

1115


What is derived datatype in c?

1038