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 void pointers in c?

1023


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1196


Explain main function in c?

1094


Write a function that will take in a phone number and output all possible alphabetical combinations

1063


What is a good way to implement complex numbers in c?

1060


What is data structure in c language?

1120


What are conditional operators in C?

1108


Do array subscripts always start with zero?

1316


What is the purpose of scanf() and printf() functions?

1251


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1091


Do pointers take up memory?

1167


Who invented bcpl language?

1204


Why isn't any of this standardized in c? Any real program has to do some of these things.

1228


What is difference between function overloading and operator overloading?

1098


When we use void main and int main?

1097