#include <stdio.h>
main()
{
    int i;
    char *p, s[] = "IBA";

    for( i=0; i<4; i++ ) printf("%c",s[i]);
    putchar('\n');
    for( p= &s[0]; p<&s[4]; p++ ) printf("%c",*p);
    putchar('\n');
    for( p= &s[0],i=1; i<5; i++ ) printf("%c",p[i]);
    putchar('\n');
    for( p=s,i=0; p+i<s+4; p++,i++ ) printf("%c",*(p+i));
    putchar('\n');
    for( p=s+3; p>=s; p-- ) printf("%c",*p);
    putchar('\n');
    for( p=s+3,i=0; i<4; i++ ) printf("%c",p[-i]);
    putchar('\n');
    for( p=s+3; p>=s; p-- ) printf("%c",s[p-s]);
    putchar('\n');
}
