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 adt in c programming?
What is the translation phases used in c language?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is bss in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Can we access the array using a pointer in c language?
What is the maximum length of an identifier?
What is static identifier?
What is the use of typedef in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
What are operators in c?
What is the use of bitwise operator?
How can you find the exact size of a data type in c?
What is the explanation for cyclic nature of data types in c?
What is #include called?