snash
Joined: 30 May 2009 Posts: 6
|
Array shift |
Posted: Fri Oct 11, 2013 9:01 am |
|
|
Hi
I'm new user in ccs and i'm having a problem in shift 1 bit from my array.
I need to shift inside the for loop because i will make somethings yest
Code: |
void f_switch()
{
int i=0;
int1 v_switch[16]={1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
for (i=0;i<16;i++)
{
shift_right(v_switch,1,0)
or
v_switch= v_switch >> 1
or i dont know
}
} |
if there are any other way to declare my binary (16bits) array i will be glad too if anyone help me.
Thanks |
|