implement NAND gate logic in C code without using any
bitwise operatior.
Answer Posted / 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 |
Post New Answer View All Answers
What is the function of multilevel pointer in c?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is #define in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What is union and structure in c?
Why do we use namespace feature?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
Can you subtract pointers from each other? Why would you?
How many levels of pointers have?
Why static variable is used in c?
How are pointers declared in c?
What is data structure in c and its types?
What are global variables?
What is a structural principle?
What is an expression?