UNITELEVENUNIT11E-MAILnadinetan@163.com://jpkc.whu.edu.cn/jpkc2005/alprogramUNITELEVEN1.2.C3.“C”UNITELEVEN1.2.3.4.UNITELEVEN1UNITELEVEN1.1…...…...200020012002200512003---------01011101{“”{……UNITELEVEN1.1…...…...200020012002200512003-----ik:shortinti;floatk;UNITELEVEN1.1…...…...200020012002200512003-----ik{i2000{k2002:shortinti;floatk;UNITELEVEN1.1308567980129scoreshortintscore[30];UNITELEVEN1.1{200shortintscore[200];{{UNITELEVEN1.1UNITELEVEN1.1{{{UNITELEVEN1.1{{{{{……UNITELEVEN1.2{{…...…...2000200420062005count17countptr2001200220032000UNITELEVEN1.2{{…...…...2000200420062005count17countptr2001200220032000UNITELEVEN1.3{{17countcount1717countcountptrcountptr17UNITELEVEN1.3{{count=3;…...…...2000200420062005count17countptr2001200220032000*countptr=20;320UNITELEVEN1.4type*name{name{*{type{type*Ctype*name17countcountptrintcount,*countptrcountptr=&count;*countptr=17;*countptrUNITELEVEN1.4type*namename*namename;{name;{*name.17countcountptrintcount,*countptrcountptr=&count;*countptr=17;*countptrUNITELEVEN1.4type*name{name{*name{countcountptrintcount,*countptr*countptr=17;UNITELEVEN2UNITELEVEN2.1*address*address{address&variable&variable{variableintcount,*countptrcountptr=&count;*countptr=17;UNITELEVEN2.18-1217218/*&*LT8-1.C*/#includestdio.h#includestdlib.hintmain(void){inta,*aptr;/*aaptr*/a=10;aptr=&a;/*aaptr*/printf(a%paptr%p\n,&a,aptr);printf(aptr%p\n,&aptr);printf(a%d*aptr%d\n,a,*aptr);printf(&*aptr%p\n*&aptr%p\n,&*aptr,*&aptr);system(PAUSE);return0;}/*endmain*/UNITELEVEN2.18-1/*&*LT8-1.C*/#includestdio.h#includestdlib.hintmain(void){inta,*aptr;/*aaptr*/a=10;aptr=&a;/*aaptr*/printf(a%paptr%p\n,&a,aptr);printf(aptr%p\n,&aptr);printf(a%d*aptr%d\n,a,*aptr);printf(&*aptr%p\n*&aptr%p\n,&*aptr,*&aptr);system(PAUSE);return0;}/*endmain*/UNITELEVEN2.2NULL{“”{stdio.h0{000.0‘\0’NULLint*p=NULL;*p=8;/**/UNITELEVEN2.200.0‘\0’NULL{z00.0‘\0’NULL0z0.08‘\0’1024zNULL{CUNITELEVEN2.3void*{void*p{p;{{char*p1;void*p2;……p1=(char*)p2;p2=(void*)p1;UNITELEVEN2.4{/{{{{UNITELEVEN2.4void*malloc(size_tsize);{stdlib.h{size_tuinsignedintunsignedlong{size{0NULLUNITELEVEN2.4void*malloc(size_tsize);int*p;p=(int*)malloc(sizeof(int));if(p==NULL){printf(Outofmemory.\n);exit(1);}UNITELEVEN2.4void*malloc(size_tsize);int*p;/*10*/p=(int*)malloc(10*sizeof(int));if(!p){/**/printf(Outofmemory.\n);exit(1);}pUNITELEVEN2.4void*calloc(size_tn,size_tsize);{nsize0{NULL{n{sizeUNITELEVEN2.4void*calloc(size_tn,size_tsize);long*lptr;lptr=(long*)calloc(5,sizeof(long));if(!lptr){printf(Outofmemory.\n);exit(1);}lptrUNITELEVEN2.4voidfree(void*ptr);{pt;{;{ptr{free{UNITELEVEN2.4void*realloc(void*ptr,size_tsize);{ptr:malloccalloc;{size:;{{NULLUNITELEVEN2.4void*realloc(void*ptr,size_tsize);long*lptr;lptr=(long*)calloc(5,sizeof(long));if(!lptr){printf(Outofmemory.\n);exit(1);}lptr=(long*)realloc(lptr,3*sizeof(long));UNITELEVEN2.5type*name=initialization{z/NULLz{initializationzNULLzzUNITELEVEN2.5type*name=initializationintx=31;int*ptr1=&x,*ptr2,*ptr3=NULL;31ptr1xptr2ptr3UNITELEVEN2.58-2220/*LT8-2.C*/#includestdio.h#includestdlib.h#includestring.hintmain(void){inta;char*s;/*s*/printf(\n\n\n);UNITELEVEN2.5s=malloc(80);if(!s){printf(Memoryrequestfailed\n);exit(1);}gets(s);/**//**/for(a=strlen(s)-1;a=0;a--)putchar(s[a]);UNITELEVEN2.5printf(“\n\n”);free(s);/**/system(PAUSE);return0;}/*endmain*/UNITELEVEN3UNITELEVEN3.1ptr1=ptr2{ptr1{ptr2{ptr1ptr2inta,*aptr1,*aptr2;aptr1=&a;aptr2=aptr1;/*aptr1aptr2a*/UNITELEVEN3.1ptr1=ptr2{{void*{void*NULL{{UNITELEVEN3.2void*{void*{void*void*UNITELEVEN3.2{void*doublex=100.01,y;int*p;p=(int*)&x;y=*p;/*y*/pint*pintUNITELEVEN3.3{p1d{+dd*p1p1+dp1+sizeof(*p1)*d{-dd*p1p1+dUNITELEVEN3.3shortint*p1shortscore[10]={84,65,77,60,88,86,92,93,70,66};p1=&score[0];19982000842002652004772006602008882010862012922014932016702018662020p1p1+1p1-1p1++;p12002p1--;p11998UNITELEVEN3.3longint*p2shortscore[10]={84,65,77,60,88,86,92,93,70,66};p2=(longint*)&score[0];199619982000842002652004772006602008882010862012922014932016702018662020p2p2+1p2-1p2++;p2?p2--;p2?20041996*p2long4UNITELEVEN3.3#includestdio.h#includestdlib.hintmain(){longint*p2;shortscore[10]={84,65,77,60,88,86,92,93,70,66};p2=(longint*)&score[0];printf(%p,%p,%p\n,score,p2,p2+1);system(PAUSE);return0;}UNITELEVEN3.3{p1p2{p1p2{p1p2p1–p2UNITELEVEN3.3shortint*p1,*p2shortscore[10]={84,65,77,60,88,86,92,93,70,66};p1=&score[0];p2=score+4;19982000842002652004772006602008882010862012922014932016702018662020p1p2p2–p14UNITELEVEN3.3longint*p3,*p4shortscore[10]={84,65,77,60,88,86,92,93,70,66};p3=(longint*)&score[0];p4=(longint*)(score+4);199619982000842002652004772006602008882010862012922014932016702018662020p3p4p4–p32*p3*p4long4UNITELEVEN3.3#includestdio.h#includestdlib.hintmain(){longint*p3,*p4;shortscore[10]={84,65,77,60,88,86,92,93,70,66};p3=(longint*)&score[0];p4=(longint*)(score+4);printf(%d\n,p4-p3);system(PAUSE);return0;}UNITELEVEN3.4p1p2p1p2p1p1p2p1p1==p2p1p2p1p2p==NULLp!=NULLUNITELEVEN8-3stackfirst-inlast-out224226p1……stack[0]stack[1]stack[