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
What is void pointers in c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Explain main function in c?
Write a function that will take in a phone number and output all possible alphabetical combinations
What is a good way to implement complex numbers in c?
What is data structure in c language?
What are conditional operators in C?
Do array subscripts always start with zero?
What is the purpose of scanf() and printf() functions?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Do pointers take up memory?
Who invented bcpl language?
Why isn't any of this standardized in c? Any real program has to do some of these things.
What is difference between function overloading and operator overloading?
When we use void main and int main?