implement NAND gate logic in C code without using any
bitwise operatior.
Answer Posted / senthil.cp
NAND using Bitwise operators
c = ~(a & b) OR
c = ~a | ~b
NAND without using bitwise operators
c = (0xFF - a) + (0xFF - b)
Is This Answer Correct ? | 35 Yes | 16 No |
Post New Answer View All Answers
What is the difference between functions abs() and fabs()?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Write a program for Overriding.
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What is string function c?
What is the code for 3 questions and answer check in VisualBasic.Net?
Give differences between - new and malloc() , delete and free() ?
Without Computer networks, Computers will be half the use. Comment.
write a programming in c to find the sum of all elements in an array through function.
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What are the types of data types and explain?
Why can’t constant values be used to define an array’s initial size?
What is an auto keyword in c?
Explain why C language is procedural?