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 difference between malloc()/free() and new/delete?

1153


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

1210


Write a program to find the Fibonacci series recursively.

1063


What is the function of I/O library in C++ ?

1176


What are stacks?

1047


How will you call C functions from C ++ and vice-versa?

1131


Explain the volatile and mutable keywords.

1062


What is abstraction in c++ with example?

1093


which of the following is not an secondary constant a) array b) real c) union

1790


What do you mean by vtable and vptr in c++?

1035


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

1097


What do you mean by funtion prototype?

1071


Are vectors faster than arrays?

984


Write a function that swaps the values of two integers, using int* as the argument type?

1018


What is math h in c++?

1162