i
Micron Technology
Filter interviews by
To swap bits from 1 and 4 position, we need to use bitwise operators.
Use bitwise AND operator with 0x0E to get the value of the 4th bit.
Use bitwise AND operator with 0x01 to get the value of the 1st bit.
Use bitwise XOR operator to swap the values of the 1st and 4th bits.
Use bitwise OR operator to combine the swapped bits with the remaining bits.
Top trending discussions
Software Engineer
131
salaries
| ₹6 L/yr - ₹18.3 L/yr |
Senior Software Engineer
112
salaries
| ₹9.3 L/yr - ₹26 L/yr |
Data Engineer
98
salaries
| ₹7.4 L/yr - ₹28.1 L/yr |
Staff Engineer
67
salaries
| ₹24 L/yr - ₹50 L/yr |
Senior Engineer
63
salaries
| ₹14 L/yr - ₹40.5 L/yr |
Intel
Samsung
Western Digital
Advanced Micro Devices