Difference between shift left and shift right?
Answer / devesh kumar patel
in shift left we multiply the no by 2^n and in right shift
we multiply the no by 2^-n (where 'n' is no. of shift)
| Is This Answer Correct ? | 7 Yes | 1 No |
What is boyce codd normal form in c++?
What is a constructor in c++ with example?
What is new in c++?
Is c++ double?
What is auto type c++?
Which bit wise operator is suitable for turning off a particular bit in a number?
When is the last time you coded in C/C++? What is the most lines of original C/C++ code you have personally written in one project? How confident are you in your ability to write C or C++ without a reference?
Which software is best for c++ programming?
How would you implement a substr() function that extracts a sub string from a given string?
When should I use unitbuf flag?
this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }
How const int *ourpointer differs from int const *ourpointer?