void fun(char s[],char t[]) { int i; int k=0; for(i=0;s[i] != 0;i++) { if(i%2==1 && s[i]%2==0) t[k++] = s[i]; } }