#include <stdio.h> #define SIZE 31 int main(void) { char s[SIZE] = "abcdefgh", t[SIZE], * p1 = s, * p2 = t; while(*p1) *p1 % 2 ? *p2++ = *p1++ : p1++; *p2 = '\0'; printf("%s\n", t); return 0; }