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

What is wrapper class in c++?

1202


How can we access protected and private members of a class?

1166


Tell me can a pure virtual function have an implementation?

1107


How do you find out if a linked-list has an end?

1191


What are maps in c++?

1017


what is COPY CONSTRUCTOR and what is it used for?

1134


What is the difference between the compiler and the preprocessor?

1172


Can we declare a base-class destructor as virtual?

1084


What is c++ similar to?

1260


What are structures and unions?

1070


C is to C++ as 1 is to a) What the heck b) 2 c) 10

1123


Is java the same as c++?

1039


What is meant by iomanip in c++?

1300


What is a dangling pointer in c++?

1213


What is struct c++?

1063