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

Explain do array subscripts always start with zero?

1239


In C programming, what command or code can be used to determine if a number of odd or even?

1059


Explain how do you view the path?

1178


difference between native and cross compilers

2131


What is output redirection?

1223


Write a program to print factorial of given number using recursion?

1019


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

1110


What does sizeof return c?

1067


How does selection sort work in c?

1042


What are directives in c?

974


Can we use visual studio for c?

1099


What is an expression?

1059


Is c call by value?

1021


How many levels of pointers have?

1056


What is a char c?

1043