logic for x=y^n

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to print "hello world" without using a semicolon?

598


What is the purpose of void pointer?

600


Is c dynamically typed?

668


What is difference between scanf and gets?

615


write a proram to reverse the string using switch case?

2470






Explain what does a function declared as pascal do differently?

643


What do you mean by c what are the main characteristics of c language?

573


Does * p ++ increment p or what it points to?

619


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2700


What is ponter?

775


Explain what is the difference between a free-standing and a hosted environment?

636


What is exit() function?

562


Is c a great language, or what?

605


When is a null pointer used?

642


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4906