指针数组与指向指针的指针


http://wlkc.gdqy.edu.cn/jpkc/portal/blob?key=173314


指针数组和数组指针的区别



http://allew.blog.163.com/blog/static/3374389720094148449239/

指针数组[组图]


http://school.cnd8.com/c/jiaocheng/9212.htm

函数指针和指针函数


http://lionwq.spaces.eepw.com.cn/articles/article/item/18258

========================================


source 1


result 1:

[work@db-testing-com06-vm3.db01.baidu.com c++]$ gcc -o array_ptr array_ptr.c

[work@db-testing-com06-vm3.db01.baidu.com c++]$ ./array_ptr

beijing shanghai        tianjin chongqing

1       2       3

1:2     3:4     5:6

========================


source 2


result 2:

[work@db-testing-com06-vm3.db01.baidu.com c++]$ ./array_ptr_sort

beijing

shanghai

tianjin

chongqing

beijing

shanghai

tianjin

chongqing

beijing

chongqing

shanghai

tianjin

=================================


指针函数


Source


Result

[work@db-testing-com06-vm3.db01.baidu.com c++]$ gcc -o func_pfun func_pfun.c

[work@db-testing-com06-vm3.db01.baidu.com c++]$ ./func_pfun

str1: I am glad to meet you

str2: Welcome to study C

Welcome to study C

=================================


函数指针


Source


Result

work@db-testing-com06-vm3.db01.baidu.com c++]$ gcc -o func_ptr func_ptr.c

[work@db-testing-com06-vm3.db01.baidu.com c++]$ ./func_ptr

3 6

3 6 max: 6