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
Why do we use return in c?
When is a “switch” statement preferable over an “if” statement?
Why is python slower than c?
Ow can I insert or delete a line (or record) in the middle of a file?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
How to get string length of given string in c?
What do mean by network ?
Why do we use pointer to pointer in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Is int a keyword in c?
Why & is used in c?
The file stdio.h, what does it contain?
What is derived datatype in c?