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

Why does everyone say not to use scanf? What should I use instead?

1430


Explain the advantages and disadvantages of macros.

1105


i got 75% in all semester am i eligible for your company

2235


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

1164


How does #define work?

1088


What is function prototype?

1158


How do you define CONSTANT in C?

1288


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

1027


What is void pointers in c?

1023


Explain what is the benefit of using an enum rather than a #define constant?

1235


How can I trap or ignore keyboard interrupts like control-c?

1076


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1012


What does sizeof return c?

1077


about c language

2029


Lists the benefits of c programming language?

1148