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 / 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

An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

1104


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1271


How are variables declared in c?

1028


Why & is used in c?

1117


What does the c in ctime mean?

1018


When should a far pointer be used?

1060


What is an identifier?

979


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

1070


What is variable in c example?

993


In C, What is the #line used for?

2097


How are strings stored in c?

972


What is abstract data structure in c?

976


Tell me about low level programming languages.

1067


What is self-referential structure in c programming?

1142


Do pointers store the address of value or the actual value of a variable?

1020