|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
C++
DETAILS
Question: What is output equal to in Bitwise Operations
Answer: Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively), what is output equal to in?
output = (X & Y) | (X & Z) | (Y & Z);
|
|
|
Category |
C++ Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6505 users |
Added on |
7/16/2015 |
Views |
69105 |
Rate it! |
|
|
Question:
What is output equal to in Bitwise Operations
Answer:
Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively), what is output equal to in?
output = (X & Y) | (X & Z) | (Y & Z); Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What’s the auto keyword good for?
|
View Answer
|
|
What does extern mean in a function declaration?
|
View Answer
|
|
What's the best way to declare and define global variables?
|
View Answer
|
|
How do you decide which integer type to use?
|
View Answer
|
|
How do you write a function that can reverse a linked-list?
|
View Answer
|
|
What is the difference between declaration and definition?
|
View Answer
|
|
What is the difference between realloc() and free()?
|
View Answer
|
|
How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
|
View Answer
|
|
What is C++?
|
View Answer
|
|
What is the difference between declaration and definition?
|
View Answer
|
|
What are the advantages of inheritance?
|
View Answer
|
|
Tell how to check whether a linked list is circular.
|
View Answer
|
|
What is public, protected, private?
|
View Answer
|
|
Write a program that ask for user input from 5 to 9 then calculate the average
|
View Answer
|
|
What do you mean by inline function?
|
View Answer
|
|
What is the difference between class and structure?
|
View Answer
|
|
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. new() and malloc()
|
View Answer
|
|
What is a template?
|
View Answer
|
|
What is the difference between an ARRAY and a LIST?
|
View Answer
|
|
What do you mean by inheritance?
|
View Answer
|