Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
The Shift Operators
There are 2 shift operators : left shift ( <<) and right shift (>>). These are binary operators. The format is
operand >> number or operand << number
The first operand is the value, which is to be shifted. The second is the number of bits by which it is shifted. The left shift operators shift 'number' bits to the left, while the right shift operators shift 'number' bits to the right. The leftmost and the rightmost bits are shifted out and are lost.
e.g.
char x, y = 0x80;
y = y >> 3;
x = y <<2;
y <<= 1;
x >>=2;
The char y( which is allocated a byte of space on a 16-bit machine) will have its bits shifted to the right three places. The value of y which was 0x80(1000 0000) is changed to 0xFo (1111 0000) , after y = y>>3.
Algorithm for railway ticket booking process
Write in a file: void main() { int i,j,k,l,list[1000]; FILE *fp; char any[8]; cout cin >> any; fp = fopen(any,"wb"); for(j=0;j {
In this assignment the main has been written for you in the file phone_book_main.cpp. You will also notice that a class called Person has been declared as having several prototypes
Operator Overloading Fundamentals The C language uses the concept of Operator Overloading discreetly. The asterisk (*) is used as multiplication operator as well as indirect
What does this mean that "friendship isn't transitive, inherited or reciprocal"? A: As I grant you friendship access to me doesn't grant your kids automatically access to me, do
I am seeking an expert to create a 360 degree virtual tour in KRPano for use on PCs, tablets and smartphones. You will be given with panoramas in order to create an advanced KRPano
what is logic in C
Explain protected, public, private in C++? These are three access spaecifiers in C++. - Public - Here data members and functions are accessible outside the class. - Pr
Arguments Passing Mechanism C++ supports the following argument passing mechanisms: i). Pass by value: A copy of the arguments value is made and passed to the called functio
Differences between a pointer and a reference 1. A reference must always point to some object where as this restriction is not imposed on a pointer. e.g. int *pi = 0;
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd