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
How can I manipulate individual bits?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
The difference between printf and fprintf is ?
Why & is used in c?
How do I use strcmp?
How can I avoid the abort, retry, fail messages?
What is the default value of local and global variables in c?
What are the different types of pointers used in c language?
What is fflush() function?
What are dangling pointers? How are dangling pointers different from memory leaks?
Why isn't it being handled properly?
Why do we use null pointer?
Tell me when would you use a pointer to a function?
the question is that what you have been doing all these periods (one year gap)
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon