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 is new() different from malloc()?

1185


Mention the ways in which parameterized can be invoked.

977


Why c++ is called oop?

1179


what is the use of void main() in C++ language?

1178


Describe new operator and delete operator?

1151


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1222


What are the advantages of using friend classes?

1208


What is the object serialization?

1209


Define upcasting.

1106


Explain function overloading

1062


Discuss the possibilities related to the termination of a program before entering the mainq method?

1018


What is the use of 'this' pointer?

1306


What are the types of array in c++?

1240


What are the advantages of early binding?

1126


Explain how the virtual base class is different from the conventional base classes of the opps.

1217