Coding Question: Variable 1 = 10; Variable 2 = 20; Variable 3 = 0; Variable 3 = Variable 1 * Variable 2; Do Calculation without using Multiplication

AnswerBot
1mo

Use bitwise operations to perform multiplication without using the * operator.

  • Use bitwise left shift operator to multiply Variable 1 by 2^n where n is the value of Variable 2.

  • Add the result of each le...read more

Help your peers!
Add answer anonymously...
Excellon Software DOT NET Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter