implement NAND gate logic in C code without using any
bitwise operatior.
Answers were Sorted based on User's Feedback
Answer / laxmi bose
#include<stdio.h>
main()
{
int a,b;
scanf("%d%d",&a,&b);
if(a==0||b==0)
{
printf("1");
}
else
{
printf("0");
}
| Is This Answer Correct ? | 42 Yes | 13 No |
Answer / 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 |
how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.
can anyone please tell about the nested interrupts?
What is c definition?
What is an lvalue?
WRITE A C PROGRAM FOR PRINT "RHOMBUS" STRUCTURE . Example: Enter the numbers :3 * * * * * * * *
what is the coding of display the factorial of a number using array and function?
What is the best organizational structure?
How do I determine whether a character is numeric, alphabetic, and so on?
Write c-code for 5+55+555+5555+55555+555555+5555555. Output will be it's answer...
what is c++ programming?
write a own function to compare two strings with out using stringcomparition function?
what is Structural oriented language? give some example of this language.....?