Guys if the int c=10001; which is a binary value.If i want to process it like multiplying it by 10 how to do that?
The multiplication of a binary with an integer:
For your example with c=10001 (base 2) * 10 (base 10) this means (10 = 2^3+2^1)
int c=10001
int result=c*1000+c*10 //left-shift 3 + left-shift 1
But this is really not a good way to handle this kind of task... Moreover it think it's a bad idea to save an binary value into an int. I think it would be better to convert the binary into an integer before using it.