I am trying out some program for my application which will continue scan for user input. There are two numbers say num1 and num2 both of 8 bits long and num1 will always hold some value.
Now whatever value user sets in num2 should get added in num1 without altering its previous value.
In simple nth value of num2 should get added with nth value of num1.
Example:
num1 0000 0100
num2 0010 0101
Updated value of num1 0010 0101
Can someone help me out how to perform bitwise operations for same?