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

How to throw some light on the b tree?

0 Answers  


What is the use of linkage in c language?

0 Answers  


Write a program to check armstrong number in c?

0 Answers  


Write the program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures.

3 Answers   Google,


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

7 Answers   Accenture, Gridco, IBM, Kevin IT, TCS, Vimukti Technologies,






What is wild pointer in c with example?

0 Answers  


What are the rules for the identifier?

0 Answers  


What is the difference between union and anonymous union?

0 Answers   Hexaware,


what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);

4 Answers   TCS,


what is the use of c program?

4 Answers   Synergy, Web Synergies,


Average of a couple 10 years ago was 25. The average remains same after having a child and twins after 3 years. What is the present age of the first child

10 Answers   IBM, Infosys,


what is the significance of static storage class specifier?

0 Answers  


Categories