void fun(char s[],char t[]){ int len1,len2=0; int i; len1 = strlen(s); for(i=0;i<len1;i++){ if(s[i] % 2 == 0){ t[len2++]=s[i]; } } }