<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LINUXQQ &#187; C 指针和数组地址笔记</title>
	<atom:link href="http://www.linuxqq.net/archives/tag/c-%e6%8c%87%e9%92%88%e5%92%8c%e6%95%b0%e7%bb%84%e5%9c%b0%e5%9d%80%e7%ac%94%e8%ae%b0/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxqq.net</link>
	<description>LINUXQQ狂人时代</description>
	<lastBuildDate>Tue, 10 Jan 2012 04:39:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>C 指针和数组地址笔记</title>
		<link>http://www.linuxqq.net/archives/92.html</link>
		<comments>http://www.linuxqq.net/archives/92.html#comments</comments>
		<pubDate>Thu, 21 May 2009 03:44:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C语言]]></category>
		<category><![CDATA[C 指针和数组地址笔记]]></category>

		<guid isPermaLink="false">http://www.linuxqq.net/?p=92</guid>
		<description><![CDATA[#include&#60;stdio.h&#62;  int main()     {       int a[5]={1,2,3,4,5];       int *ptr=(int *)(&#38;a+1)       printf(&#8220;%d,%d\n&#8221;,*(a+1),*(prt-1); } ~ 一定很绕吧，我也糊涂了 琢磨了一早上 C语言里面规定a是数组的首地址是代表整个数组 但&#38;a+1不等价于&#38;a[0]+1, &#38;a是首地址 &#38;a+1就是取a 的地址在加1直接指向下一个内存区域  也就是指向到了ptr[0]的地址是地址上面    然后在把&#38;a+1 的地址复制给ptr指针 这时候ptr变指向了a[5] ,ptr-1=a[4]          最后结果2，5]]></description>
		<wfw:commentRss>http://www.linuxqq.net/archives/92.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

