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
How can you avoid including a header more than once?
What is the use of putchar function?
What does 3 mean in texting?
Differentiate between null and void pointers.
Why n++ execute faster than n+1 ?
Can a program have two main functions?
What are local static variables? How can you use them?
Explain how can you tell whether a program was compiled using c versus c++?
formula to convert 2500mmh2o into m3/hr
what do you mean by enumeration constant?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What is %d used for?
What is maximum size of array in c?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Explain setjmp()?