<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[加精]区分指针数组的好方法！]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Thu, 04 Dec 2008 07:39:12 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	a) 一个整型数（An integer）<br/>b)一个指向整型数的指针（ A pointer to an integer）<br/>c)一个指向指针的的指针，它指向的指针是指向一个整型数（ A pointer to a pointer to an intege）r<br/>d)一个有10个整型数的数组（ An array of 10 integers）<br/>e) 一个有10个指针的数组，该指针是指向一个整型数的。（An array of 10 pointers to integers）<br/>f) 一个指向有10个整型数数组的指针（ A pointer to an array of 10 integers）<br/>g) 一个指向函数的指针，该函数有一个整型参数并返回一个整型数（A pointer to a function that takes an integer as an argument and returns an integer）<br/>h) 一个有10个指针的数组，该指针指向一个函数，该函数有一个整型参数并返回一个整型数（ An array of ten pointers to functions that take an integer argument and return an integer ）<br/><br/>答案是：<br/>a) int a; // An integer<br/>b) int *a; // A pointer to an integer<br/>c) int **a; // A pointer to a pointer to an integer<br/>d) int a[10]; // An array of 10 integers<br/>e) int *a[10]; // An array of 10 pointers to integers<br/>f) int (*a)[10]; // A pointer to an array of 10 integers<br/>g) int (*a)(int); // A pointer to a function a that takes an integer argument and returns an integer<br/>h) int (*a[10])(int); // An array of 10 pointers to functions that take an integer argument and return an integer<br/><br/> <br/>如何区分：<br/> <br/>在没括号的定义中我们以*为分界如（int */a[10]）首先看右边我们确定它是一个数组，再看左边确定它的数组内容是一个指针并且指针指向整型数；<br/> <br/>在有括号的定义中我们就把有括号中有指针的都删掉如<br/>（int (*a)[10]=`=int () [10]）由删掉的内容我们首先确定它是一个指针，再通过删掉后剩下的内容我们确定了这个指针指向了一个有10整型数的数组；<br/> <br/>对于函数指针也一样；
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [加精]区分指针数组的好方法！]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>