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
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Which is better pointer or array?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Why flag is used in c?
Write a program to print factorial of given number without using recursion?
Can a file other than a .h file be included with #include?
Explain what is the difference between far and near ?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What does nil mean in c?
What are the types of pointers?
Is it fine to write void main () or main () in c?
What is scope and lifetime of a variable in c?
What will the preprocessor do for a program?