C语言如何传递二维字符串数组

作者:fly 发布于:2014-4-17 9:12 分类:嵌入式

int dispaly(char (*par)[20])
{ 
	printf("the short url is %s\r\n .and the full url is %s\r\n ",*par,*(par+1));  
	return 0; 
}
int main()
{
	char par[2][20]={"forwhat.cn\0","www.forwhat.cn\0"};  
	display(par); 
 	return 0;
} 

评论:

护树板
2014-04-22 11:20
学习了

发表评论:

 
Powered by emlog sitemap