c语言txt指针控制,彻底搞定C语言指针详解-完整版-时候初学者-必备.txt

253b171540df25e1b84436cbe50dfc72.gif彻底搞定C语言指针详解-完整版-时候初学者-必备.txt

1. CC洢 6 7 8 9 10 11 12 13 - | | | | | |. - CC int I char a i DOS16a int I char a 6 7 8 9 10 11 12 13 - - | | | | | | | |. |i |a | i6 int16int i. a8a. 2. 渳 i30 at 30ita 6 7 8 9 10 11 12 13 - | 30 | t | | | | |. - |i |a | 3. printfdn,i; printfdn, printfi 飬23 23 飬顣 鱾顣 CC 濴 int * pi pipi 6 7 8 9 10 11 12 13 14 .| 30 | t | | | | | | | - - |i |a | | pi | 232 432int *Pi Pi.piia pi 洢pi pi for i0;i9;i printf d, ai ; a int i,a3,4,5,6,7,3,7,4,4,6; for i0;i9;i printf d, *ai ; 2. int i,*pa,a3,4,5,6,7,3,7,4,4,6; pa a ;a pa for i0;i9;i printf d, pai ; a int i,*pa,a3,4,5,6,7,3,7,4,4,6; pa a; for i0;i9;i printf d, *pai ; paa 3. int i,*pa,a3,4,5,6,7,3,7,4,4,6; pa a; for i0;i9;i printf d, *pa ; pa ; paa pa a.45pai*pai papaa 4. int i, a3,4,5,6,7,3,7,4,4,6; int * const paa;const const int * pa for i0;i9;i printf d, *pa ; pa ; paa int * const a3456737446 int a3456737446 VC6.0顣 1 int i int i i丳 int i0 i20 const . const int ic 20 ic40 const ic constic 20 const ic const const int ic20int const ic20 const int塣 const int * piint const * pi int const const int icint const ic int * const pi 2 const int * pi const int * pi int const * pi * * int i130; int i240; const int * pi pi 4.pi i280; 5.*pi80; printf d, *pi ; 6. 80 pi*pii2 const *pi *pipi*pipii2 piconst pi const piint * const piconst 塣 3 int * const pi int * const pi int const * piconst pipi pi * * int i130; int i240; int * const pi pi 4.pi i180; 5.*pi80; *pii1 printf d, *pi ; 6.80 * * pi*pi i1 1piconst pipii24 2*piconst *pi *pii15 仰piint 1 const *pi*pi *pi50pi. 2 const pipi pi int *pi; piVC const int i1 int pipii1 piint* C *pi80i1 *end* const int * piconst int i1 *begin const int i140; const int * pi; pii1pii1 *end* const int * const pi *begin int i const int * const pipipipii*pi piconst end 棺 abxyxyab 1. void Exchg1int x, int y int tmp; tmpx; xy; ytmp; printf xd,ydn,x,y void main int a4,b6; Exchg1 a,b ; printfad,bdn,a,b x y a b 2. Exchg2int *px, int *py int tmp*px; *px*py; *pytmp; print*pxd,*pydn,*px,*py; main int a4; int b6; Exchg2 Print ad,bdn, a, b; *px *py a b 3. Exchg2int xy; ytmp; printxd,ydn,x,y; main int a4; int b6; Exchg2a,b; Printad,bdn, a, b; x y a b İ C 1. Exchg1壺 void Exchg1int x, int y x,yExchg1 int tmp; tmpx; xy; ytmp; printfxd,y dn,x,y xy ab void main int a4,b6; Exchg1 a,b a,b Exchg1 / printfad,bdn,a,b Exchg1 printfxdydnxy Exchg1 printfadbdnab x6 y4 a4 b6 a6b4 abxyab a4b6a6b4 abxy 2. int a4 int x xa xx3 ax a4 x7 axax xa 3. Exch1 main int a4,b6; Exchg1a,b Exchg1 printfa d,bd,a,b Exchg1a,b int xa; int yb; int tmp; tmpx; xy; ytmp; Exchg1 int xa int yb 潻 abxy ab xyExchg1abx yab.ababxy xyab abxyxy ab short int i char a short int * pi 6 78 9 10 11 12 13 14 15 - | | - |short int i |char ashort int * pi| i 5 a 7 pi9pi 32 i50 pi for i0;*arrayi0;i if *arrayisearch paarrayi break; else if *arrayi0 pa0; break; void main char strafsdfsdfdf0; char ad; char * p0; p find1str,a,p; if 0p printf n;1. else printfpd,p; adstrd 崦void find1char array char search char * pa find1 strap arraystr; searcha; pap; int i; for i0;*arrayi0;i if * arrayisearch paarrayi break; else if *arrayi0 pa0; break; pasearch pa ppp void find2char array, char search, char ppa int i; for i0;*arrayi0;i if *arrayisearch *ppaarrayi break; else if *arrayi0 *ppa0; break; find2stra searcha; ppa int i; for i0;*arrayi0;i if *arrayi search *ppaarrayi break; else if *arrayi0 *ppa0; break; ppap *ppap void MyFunint x; void MyFun int ; int mainint argc, char* argv MyFun10; MyFun10; return 0; void MyFunint x MyFun printf dn,x; MyFun 顣

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值