#include<stdio.h> main() { int func(int); typedef int (*POINTER)(); int a=8,i; char *parray[4];
int number[]={12,23,34}; int *pa=number;
struct Teacher { int num1[2]; char name1[4]; float score1; }x[]={11,22,'a','s','f','\0',38.28,77,88,'v','j','n','\0',85.22},*pb=&x[1];
typedef struct Student { int num[4]; char name[9]; float score; }STU; STU ab={{1,2,3},"me",38.23},*p=&a; POINTER p1,p2,p3; char **doublep; parray[0]=&number[1]; parray[1]=&x[1].name1[2]; parray[2]=&pb; parray[3]="ddddkkkk";
doublep=&parray[1]; printf("%d %c %o %s %c\n\n\n",*parray[0],*parray[1],*parray[2],parray[3],**doublep);
ab.num[2]=67; ab.name[1]='n';
printf("%d %c %5.2f %d %s\n",x[0].num1[0],x[1].name1[1],pb->score1,*pa,pb->name1);
{ int xyz=123; printf("%d\n%s\n%d\n",ab.num[0],ab.name,*p); printf("\n\n%d\n",sizeof(STU)); } for(i=0;i<3;i++) printf("%d\n",func(a));
getch(); } int func(int a) { auto int b=1; static int c=3; if(c==4) printf("c is not \"\\0\"\n"); printf("%i\n",c);
return (a+b+++c++); }
[此贴子已经被作者于2005-7-3 15:22:57编辑过]