Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Can we increase size of array in c?

971


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

1118


Write a program of advanced Fibonacci series.

1155


Hi can anyone tell what is a start up code?

2085


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

1037


When should structures be passed by values or by references?

1045


write a c program for swapping two strings using pointer

2638


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

1140


Write a program to check armstrong number in c?

1134


What math functions are available for integers? For floating point?

1139


what is recursion in C

1071


What is the role of && operator in a program code?

1079


What is a far pointer in c?

1047


Dont ansi function prototypes render lint obsolete?

1135


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1406