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

What are the keywords in c?

1104


How can you restore a redirected standard stream?

1081


Differentiate between ordinary variable and pointer in c.

1128


Can you define which header file to include at compile time?

999


C language questions for civil engineering

1681


Can stdout be forced to print somewhere other than the screen?

1032


Write a program to generate the Fibinocci Series

1193


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1176


List some basic data types in c?

1000


Can we initialize extern variable in c?

1102


What is difference between structure and union in c?

946


What does 4d mean in c?

1465


What is sizeof array in c?

1003


What are the types of bitwise operator?

1073


What happens if you free a pointer twice?

1043