GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 121 of 258    Print  
Which bit wise operator is suitable for putting on a particular bit in a number?

  
Total Answers and Comments: 2 Last Update: July 01, 2007   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Ashutosh
 
| (or) operator

Above answer was rated as good by the following members:
Sudheendra.S.N
November 07, 2005 07:17:38   #1  
Ashutosh        

RE: Which bit wise operator is suitable for putting o...
| (or) operator
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 01, 2007 16:26:46   #2  
Ajay Kanse Member Since: July 2007   Contribution: 22    

RE: Which bit wise operator is suitable for putting o...
The bitwise XOR ^ sets a one in each bit position where its operands have different bits and zero where they are same.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : is this auestion refers to how many bits are set to 1 in a value.if that is the question then simply convert that value into bit code....then you can get the answer easily..... ...

Latest Answer : use ulimit -n 100. that is the above line increase the number of open file descriptor to 100 w.r.t that shellbalaji ...

Latest Answer : In C++, assignment and copy construction are different because the copy constructor initializes uninitialized memory, whereas assignment starts with an existing initialized object. If your class contains instances of other classes as data members, the ...

Latest Answer : "Postincrement is usually less efficient than preincrement because it has to remember & return its original value"That is, apart from also doing the increment operation, Postincrement has to remember & return its original value.Exceptional ...

Latest Answer : Do any operation symbolizing the operator in your class.you can add/subtract/multiply/divide or do any other operation for +operator() the choice is entirely yours.Freedom you see ...

Latest Answer : Hexadecimal-D93C. ...

Latest Answer : XOR Operator is right. XOR the given bit with 1 if the bit is 1 then 0 is the o/p else 1 is the o/p. ...

Latest Answer : Bitwise and - & is the correct answer. n=n & 0177 ...

Latest Answer : The bitwise XOR ^ sets a one in each bit position where its operands have different bits and zero where they are same. ...

Latest Answer : One's complement ~ ...


 Sponsored Links

 
Related Articles

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

C++ Dereference Operator

C Dereference Operator In this C tutorial you will learn how to access the value of variables pointed by the pointer variables using pointer concept discussed in detail mosgoogle center It is possible to access the value of variables pointed by the pointer variables using pointer This is performed
 

C++ Operator Overloading Part II

C Operator Overloading Part II Operator overloading is a very important aspect of object oriented programming Binary operators can be overloaded in a similar manner as unary operators In this C tutorial you will learn about Binary Operating Overloading explained along with syntax and example mosgoog
 

sizeof Operator

What is sizeof operator? sizeof will return the number of bytes reserved for a variable or data type. The sizeof operator is a compile-time operator that returns an integer value. In other words since sizeof is a compile time operator, when used in a expression, it does not get compiled into executa
 

Modulus Operator

What is the functionality and restrictions of Modulus Operator? When a division is performed, the remainder of the operation is given by modulus operator. The modulus operator is denoted in c by symbol %. For instance we have two integer values x and y, the operation x % y called as x modulus y give
 

Operator, Operand and Expression in C

Operator, Operand, and Expression in are symbols which take one or more operands or expressions and perform arithmetic or logical computations. Types of operators available in C are as follows: Arithmetic Assignment Logical/relational Bitwise These have operators under each
 

Prefix and Postfix Operator

How does the prefix and postfix operator on expression? The operators present in prefix and postfix are prefix increment operator denoted by ++ prefix decrement operator denoted by -- postfix increment operator postfix decrement operator The difference between the two is that i
 

Sample Resume - Computer Operator Resume

Sample Resume Computer Operator Resume This article provides a sample resume format for those applying for the post of Computer Operator You can make use of this sample resume format while preparing your actual resume Computer Operator Resume mosgoogle Computer operator takes important tasks in an o
 

The Role of a Computer Operator

The Role of a Computer Operator Computers play a large part in our world today They are used for various personal and business reasons and many individuals would find it difficult to live without them For this reason computer related jobs are quite prominent in the job market There are various posit
 

The Inheritance Concept In OOPs

The Inheritance Concept In OOPs In object oriented programming objects will be characterised by classes It is possible to learn a lot about an object based on the class it belongs to Even if you are not familiar with the name Maybach If I told you it is a car you would immediately know that it has f
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape