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

given
unsigned int ui1=3,ui2=7;
what are the outputs of
a)ui1 & ui2
b)ui1 && ui2
c)ui1 | ui2
d)ui1 || ui2

i also need the justification for the answers
thank you

Answer Posted / swapna

a) 3
&:bitwise and operator

3-011
7-111
3&7-011->3
b)any positive value
&&-logical and
both numbers are are positive.so and operation results in
true-so any positive value
c)7
bitwise or
d)any positive value
logical or

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can I run c++ program?

1005


what is COPY CONSTRUCTOR and what is it used for?

1021


What is pointer to member?

1010


Is map thread safe c++?

1021


Explain the term memory alignment?

1157


what are Access specifiers in C++ class? What are the types?

1144


How can we read/write Structures from/to data files?

1063


Can you Mention some Application of C/C++?

1006


Explain pass by value and pass by reference.

1000


Is c++ primer good for beginners?

984


what is VOID?

1006


Which programming language's unsatisfactory performance led to the discovery of c++?

1257


What is the basic structure of a c++ program?

1075


Why c++ is better than c language?

953


Which function should be used to free the memory allocated by calloc()?

974