Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is adt in c programming?

1169


What is the translation phases used in c language?

1124


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1074


What is bss in c?

1106


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1118


Can we access the array using a pointer in c language?

1051


What is the maximum length of an identifier?

1188


What is static identifier?

1225


What is the use of typedef in c?

1037


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1953


What are operators in c?

1030


What is the use of bitwise operator?

1134


How can you find the exact size of a data type in c?

1005


What is the explanation for cyclic nature of data types in c?

1221


What is #include called?

1065