Give a fast way to multiply a number by 7
Answer Posted / rajan
ANU is right the answer is x<<3 -x
when you left shift any number by 1 it is equivalent to
multiplying with 2.
so, left shift by 3 means ur are multiplying with 8.
and x*7 = x(8-1) = x*8-x = x<<3-x .
| Is This Answer Correct ? | 31 Yes | 5 No |
Post New Answer View All Answers
how to find anagram without using string functions using only loops in c programming
Explain how can I convert a string to a number?
what is reason of your company position's in india no. 1.
Explain union.
What are conditional operators in C?
What are header files and what are its uses in C programming?
What is sizeof c?
How the c program is executed?
define string ?
How to write a multi-statement macro?
Is fortran still used today?
Is there any data type in c with variable size?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
Why c is called free form language?
What is the difference between functions abs() and fabs()?