logic for x=y^n



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

Post New Answer

More C Interview Questions

a=(1,2,3); b=1,2,3; c=1,(2,3); d=(1,2),3; what's the value of 'a','b','c','d'

2 Answers  


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

0 Answers   Google, Infosys,


C program to find frequency of each character in a text file?

6 Answers  


What is the difference b/w Structure & Array?

6 Answers  


What kind of sorting is this? SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort

3 Answers   Accenture,






Explain void pointer?

0 Answers  


5. distance conversion: Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer

4 Answers  


write a program for egyptian fractions in c?

1 Answers   Satyam,


What is the use of in c?

0 Answers  


Write a program for Overriding.

0 Answers  


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   HCL, iGate,


What are the 4 types of unions?

0 Answers  


Categories