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

What is the scope of an external variable in c?

1095


What is the difference between typedef struct and struct?

1164


What is pass by value in c?

1134


What is typeof in c?

1060


What are variables and it what way is it different from constants?

1284


Explain what are global variables and explain how do you declare them?

1232


What does node * mean?

1301


what is use of malloc and calloc?

1950


How is a macro different from a function?

1242


What is a pointer on a pointer in c programming language?

1186


When is a void pointer used?

1307


Explain indirection?

1179


Write a C program in Fibonacci series.

1134


c program to compute AREA under integral

2466


How can you increase the allowable number of simultaneously open files?

1210