[ create a new paste ] login | about

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

C, pasted on Jul 17:
1
2
3
4
5
6
7
8
9
10
11
12
#include<stdio.h>
int main()
{
         int c[ ]={2,3,4,5,6,7};
         int j,*p=c,*q=c;
         for(j=0;j<5;j++) {
                printf(" %d ",*c);
                ++q;      }
         for(j=0;j<5;j++){
printf(" %d ",*p);
++p;      }
}


Output:
1
2
 2  2  2  2  2  2  3  4  5  6 
Exited: ExitFailure 3


Create a new paste based on this one


Comments: