锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美色综合一区二区三区,亚洲成av人片在线观看,日本一区高清http://www.aygfsteel.com/fullfocus/category/30491.htmlzh-cnSun, 30 Mar 2008 17:09:44 GMTSun, 30 Mar 2008 17:09:44 GMT60- 鎸囬拡鍜屽紩鐢紝 浣犵湡鐨勪細(xì)浜嗕箞錛?/title>http://www.aygfsteel.com/fullfocus/archive/2008/03/28/189367.htmlfullfocusfullfocusFri, 28 Mar 2008 14:54:00 GMThttp://www.aygfsteel.com/fullfocus/archive/2008/03/28/189367.htmlhttp://www.aygfsteel.com/fullfocus/comments/189367.htmlhttp://www.aygfsteel.com/fullfocus/archive/2008/03/28/189367.html#Feedback8http://www.aygfsteel.com/fullfocus/comments/commentRss/189367.htmlhttp://www.aygfsteel.com/fullfocus/services/trackbacks/189367.html 1 #include <stdio.h>
2 #include <stdlib.h>
3 //鍓嶇畻瀹岀畻闃匡紝浠ュ墠涓鐩翠互涓哄紕鎳備簡浼犲煎拰浼犲紩鐢紝浣嗘槸鐜板湪//涓鐪嬫湭蹇呴樋錛岀壒鍒槸紕板埌鎸囬拡鐨勬椂鍊?/span>
4 char **data;
5 void fun(char ** pointer)
6 {
7 pointer=(char**)malloc(sizeof(char*) * 10);
8 pointer[0] = (char*)malloc(sizeof(char) * 10);
9 pointer[0][0] = 'a';
10 pointer[0][1] = 'b';
11 pointer[0][2] = '\0';
12
13 printf("IN fun: output: %s\n", pointer[0]);
14
15 }
16 int main()
17 {
18
19 fun(data);
20 printf("IN main: output: %s\n", data[0]);
21 return 0;
22 }
23
24
涓婇潰鐨勪唬鐮佽兘姝g‘鎵ц鍚楋紵
鍚勪綅楂樻墜搴旇鑳界湅鍑烘潵浜嗐傘?br />
緇撴灉鏄細(xì)錛坓cc涓嬶級
IN fun: output: ab
Segmentation fault (core dumped)
鎰d簡濂戒竴闃靛瓙錛屾墠鍙嶆槧榪囨潵錛岃浼犵殑鎸囬拡钂欓獥浜嗭紝
鍦?2琛屽姞鍏ヨ繖琛屽氨ok浜嗐傝繖涓殢鏄皬浜嬶紝浣嗛┈铏庝笉寰楅樋錛屽搱鍝?br />
data = pointer;

]]>
主站蜘蛛池模板:
西畴县|
西林县|
赣榆县|
绥滨县|
许昌县|
探索|
广东省|
广汉市|
西宁市|
明星|
青岛市|
嘉鱼县|
邵阳市|
平果县|
丰都县|
合山市|
遂川县|
额尔古纳市|
社旗县|
铁力市|
漳州市|
远安县|
普兰店市|
河津市|
蒲城县|
洛阳市|
连山|
闽清县|
米林县|
正阳县|
石柱|
阿城市|
兴业县|
盐山县|
武宁县|
吉首市|
广东省|
抚松县|
柳林县|
襄城县|
海安县|