I want to transform the following c code to TCL.
int a[10],b[10];
int n=20
for (i=1,j=1; i<=n; i+=2,j++)
{
b[j]=a[i];
}
I need to change this for loop to TCL, I don’t want to use the foreach feature in TCL…
Does TCL for loop structure allow two loop variables???
Have you seen the discussion here: