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 many key words availabel in c a) 28 b) 31 c) 32

0 Answers  


what is the difference between these initializations? Char a[]=”string”; Char *p=”literal”; Does *p++ increment p, or what it points to?

4 Answers  


how to implement stack operation using singly linked list

2 Answers  


What are the 3 types of structures?

0 Answers  


Explain threaded binary trees?

0 Answers  






How do I create a directory? How do I remove a directory (and its contents)?

0 Answers  


State the difference between realloc and free.

0 Answers   Aricent,


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

0 Answers   HP,


In which category does main function belong??

5 Answers  


give an example of type casting by a simple c program

2 Answers   TCS,


What is structure padding & expalain wid example what is bit wise structure?

1 Answers  


Determine if a number is a power of 2 at O(1).

2 Answers  


Categories