Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 28 Apr 2012 13:59:31 -0500 Message-ID: <4F9C3E13.41E3@mindspring.com> Date: Sat, 28 Apr 2012 14:59:31 -0400 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: The question regarding type of pointers References: <39cgp71somr8bjmg3rufk6ins863nhdcco@4ax.com> <96bb54c9-5ea3-49ff-851b-56dfbb8eac54@qg3g2000pbc.googlegroups.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 34 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.156.228.179 X-Trace: sv3-FQoyML1I2BNPotIQBjaUIpiUS1IIj1SBCvtVn1BuVeVq5X0xkqQ9pFWrt2WefHYaUahyFxTxa4bYPJs!h+d7kMLqFFqmp/1wLEkswxExzodZ+j8ui6U2cIWaNQCCFzA5laJDh0Wog5O/vScE9GkZeK2hlcuN!dgz21D4GUoo= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1768 Xref: csiph.com comp.lang.c:20025 somenath wrote: > Now let us focus on the two dimensional array. > ========================================================== > Suppose we have the following declaration > int ar[3][3]; > Question=> What is sizeof( ar[3])? > > So what is ar[3]? ar[3] contains the pointer No, ar[3] doesn't contain any pointer. ar[3] is an expression of type array of three int. /* BEGIN new.c */ #include int main(void) { char ar[3][7]; printf("sizeof ar[3] is %u\n.", (unsigned)sizeof ar[3]); return 0; } /* END new.c */ -- pete