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

Explain register storage specifier.

1056


What is low level language in simple words?

1086


Why do we use double in c++?

1122


What is c++ and its uses?

1297


What is object in c++ wikipedia?

1063


What is a dangling pointer in c++?

1205


what is a reference variable in C++?

1289


Why is c++ difficult?

1112


What is the difference between #define debug 0 and #undef debug?

1241


How important is c++?

1034


How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

3704


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

1164


What are friend classes? What are advantages of using friend classes?

1139


What are manipulators used for?

1130


Can turbo c++ run c program?

1148