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

How can you avoid including a header more than once?

979


What is the use of putchar function?

1052


What does 3 mean in texting?

1087


Differentiate between null and void pointers.

1154


Why n++ execute faster than n+1 ?

2974


Can a program have two main functions?

1113


What are local static variables? How can you use them?

1140


Explain how can you tell whether a program was compiled using c versus c++?

1095


formula to convert 2500mmh2o into m3/hr

980


what do you mean by enumeration constant?

1007


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3527


What is %d used for?

1029


What is maximum size of array in c?

1027


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2062


Explain setjmp()?

1063