implement NAND gate logic in C code without using any
bitwise operatior.

Answer Posted / vadivel t

int a, b;
scanf("%d %d", &a, &b);
if(a != 0 || b != 0)
{
printf("1");
}
else
{
printf("0");
}

Is This Answer Correct ?    28 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can my program discover the complete pathname to the executable from which it was invoked?

660


How #define works?

619


What is void main () in c?

734


What are the Advantages of using macro

688


What is the ANSI C Standard?

780






What is function prototype in c with example?

580


What is formal argument?

652


How do I read the arrow keys? What about function keys?

616


Explain the difference between #include "..." And #include <...> In c?

633


What is difference between structure and union with example?

597


What is c language & why it is used?

582


write a program to print largest number of each row of a 2D array

1872


What is the argument of a function in c?

575


What is c language in simple words?

595


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1673