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 / subeetha

a) 3
&:bitwise and operator

3-011
7-111
3&7-011->3
b)1
&&:logical and
both numbers are non zero.So, operation Result is true
c)7
bitwise or
d)1
&&:logical Or
both numbers are non zero.So, operation Result is true

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to demonstrate the use of a variable?

1127


Explain virtual destructor?

1214


What is constructor c++?

1124


Can non graphic characters be used and processed in C++?

1201


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

990


What is insertion sorting?

1124


Why should you learn c++?

1031


daily Routine of father

1412


What is a .h file c++?

1053


What is meant by a delegate?

1103


Is c++ the most powerful language?

1098


What do you understand by zombie objects in c++?

1112


Can a function take variable length arguments, if yes, how?

1019


Explain function overloading

1023


Which operator cannot overload?

1054