#include <stdio.h> int main(void) { int x[10]={0,0,0,0,0,0,0,0,0,0}; int *p = x; scanf("%d",&x[0]); scanf("%d",&x[9]); for(int i = 0;i<10;i++){ printf(" %d ",&p[i]); } return 0;}
5 10
-843951728 -843951724 -843951720 -843951716 -843951712 -843951708 -843951704 -843951700 -843951696 -843951692
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!