logic for x=y^n
Answer / abhishek
c=a^b
here ^ is an exclusive or operator whose equation is
(~(a)b)+(~(b)a)
truth table
a b c
1 1 0
1 0 1
0 1 1
0 0 0
| Is This Answer Correct ? | 3 Yes | 0 No |
Are bit fields portable?
how to implement stack operation using singly linked list
How can you restore a redirected standard stream?
What is the use of a static variable in c?
difference between semaphores and mutex?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
0 Answers Sikkim Manipal University,
4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
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.
How many main () function we can have in a project?
Given a number N, product(N) is the product of the digits of N. We can then form a sequence N, product(N), product(product(N))… For example, using 99, we get the sequence 99, 99 = 81, 81 = 8. Input Format: A single integer N Output Format: A single integer which is the number of steps after which a single digit number occurs in the sequence. Sample Test Cases: Input #00: 99 Output #00: 2 Explanation: Step - 1 : 9 * 9 = 81 Step - 2 : 8 * 1 = 8 There are 2 steps to get to this single digit number. Input #01: 1137638147
Is fortran still used in 2018?