这个程序怎么能运行却没结果?
#define OK 1#define OVERFLOW -1
#define LIST_INIT_SIZE 100
#define LISTINCREMENT 10
#include<stdlib.h>
#include<stdio.h>
#define n 5
typedef struct{
int *elem; //存储空间基址
int length; //当前长度
int listsize; //当前分配的存储容量
} SqList;
int InitList_Sq(SqList &L)
{
L.elem = (int *)malloc(LIST_INIT_SIZE *sizeof(int));
if(!L.elem) exit(OVERFLOW);
L.length = 0;
return OK;
}
void main()
{
int i;
SqList L;
int *p[n], * t;
for(i=0;i<n;i++)
scanf("%d",&L.elem[i]);
for(i=0;i<n;i++)
p[i] = &L.elem[i];
for(i=0;i<=(n+1)/2;i++)
{t = p[i]; p[i] = p[n-1-i]; p[n-1-i] = t;}
for(i=0;i<n;i++)
printf("%",*p[i]);
}