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...

what is the use of operator ^ in C ? and how it works?

Answer Posted / vinay sachan

exclusive OR ^ is a bitwise operator known as (left assoc).

expr1 ^ expr2

ex.

0x12 ^ 0x58

returns 0x4A (the set bits in the result are those that are set in either 0x12 or 0x58, but not set in both).

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is printf a keyword?

1158


What do header files do?

1020


What is identifiers in c with examples?

1118


Why is c used in embedded systems?

1059


What is sizeof array in c?

986


cavium networks written test pattern ..

4027


What are examples of structures?

1027


How can I do graphics in c?

983


Differentiate between calloc and malloc.

1224


Differentiate between a structure and a union.

1227


List the difference between a "copy constructor" and a "assignment operator"?

958


What is return in c programming?

917


Is fortran still used today?

1041


Write a program to reverse a string.

1025


What is a static variable in c?

1067