Shifting in unsigned multiplication

i want to know that how can i do shifting like this example

C___ A____Q____M
0__1011__1101_1011 from this
0__0101__1110_1011 to this

here is my code for shifting
1
2
3
4
5
6
7
8
9
10
   for(int count=strlen(M)-1;count>=0;count--){
           
            A[strlen(M)-1]=C;
            A[count-1]=A[count];
            Q[strlen(M)-1]= A[0];
            Q[count-1]=Q[count];
            C='0';

           
        }
Last edited on
Topic archived. No new replies allowed.