[ create a new paste ] login | about

Link: http://codepad.org/XYAnHJkH    [ raw code | output | fork ]

C, pasted on May 19:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
int main() {
  char a[] = "ABCD";
  char *p, *q;
  for (p = a; *p; p++) {
    for (q = p; *q; q++)
      putchar(*q);
    putchar('\n');
  }
  return 0;
}
/* end */


Output:
1
2
3
4
ABCD
BCD
CD
D


Create a new paste based on this one


Comments: