#include <stdio.h> int main(void) { char str[32]; char *p = str; scanf("%30s", str); while (*p != '\0') putchar(*p++); return 0; }
#include <stdio.h> #define N 10 int main(void) { char a[N + 1] = {0}, *p; for(p = a; p < &a[N]; p++) *p = getchar(); *p = '\0'; for(p = a; *p != '\0'; p++) puts(p); return 0; }