home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / vmsnet / internal / 1453 < prev    next >
Encoding:
Internet Message Format  |  1992-10-15  |  2.5 KB

  1. Path: sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!news.service.uci.edu!unogate!mvb.saic.com!macro32
  2. From: REGI's <NUNEZ@esevvx.cica.es>
  3. Newsgroups: vmsnet.internals
  4. Subject: (None)
  5. Message-ID: <01GPZFVDJLJ40001ZZ@esevvx.cica.es>
  6. Date: Thu, 15 Oct 1992 16:30:00 UTC+0100
  7. Organization: Macro32<==>Vmsnet.Internals Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 60
  10.  
  11. >X-Envelope-to: MACRO32@WKUVX1.bitnet
  12. >X-VMS-To: IN::"MACRO32@WKUVX1.BITNET"
  13.  
  14. 1
  15. 13-OCT-1992 01:59:10.29
  16.    1 00:00:00.00
  17. 14-OCT-1992 01:59:10.29
  18. @UKCC.uky.edu:MacroMan@WKUVX1.BITNET
  19. gutier@SEVAXU.CICA.ES
  20.  
  21. Received: from UKCC.uky.edu by ESEVVX.CICA.ES ; 10-OCT-1992 01:59:08.23
  22. Received: from ukcc.uky.edu by UKCC.uky.edu (IBM VM SMTP V2R2)
  23.    with BSMTP id 6855; Fri, 09 Oct 92 20:58:02 EDT
  24. Received: from WKUVX1.BITNET by ukcc.uky.edu (Mailer R2.08) with BSMTP id 9814;
  25.  Fri, 09 Oct 92 20:58:01 EDT
  26. Errors-To: MacroMan@WKUVX1.BITNET
  27. X-ListName: "VMS Internals, MACRO, and BLISS Discussions"
  28.     <MACRO32@WKUVX1.BITNET>
  29. Received: from CUNYVM.BITNET (MAILER) by WKUVX1 (MX V3.1C) with BSMTP; Fri, 09
  30.           Oct 1992 19:50:39 CDT
  31. Received: from CUNYVM by CUNYVM.BITNET (Mailer R2.08) with BSMTP id 6607; Fri,
  32.           09 Oct 92 20:37:34 EDT
  33. Received: from MVB.SAIC.COM by CUNYVM.CUNY.EDU (IBM VM SMTP V2R2) with TCP;
  34.           Fri, 09 Oct 92 20:37:32 EDT
  35. From: <gjc@mitech.com>
  36. Reply-To: MACRO32@WKUVX1.BITNET
  37. X-Newsgroups: vmsnet.internals
  38. Subject: Re:  C Language question
  39. Message-ID: <3067@mitech.com>
  40. Date: 9 Oct 92 14:32:00 GMT
  41. References: <718580974.504412.MILLER@TGV.COM>
  42. Organization: Mitech Corporation, Concord MA
  43. Lines: 24
  44. To: MACRO32@WKUVX1.BITNET
  45. X-Gateway-Source-Info: USENET
  46.  
  47. In article <718580974.504412.MILLER@TGV.COM>, MILLER@TGV.COM writes:
  48. > Remember:  a[i] really means *(a+i) using the rules for pointer addition.
  49. > a[i] is a macro construct.
  50. > So a[i][j] really works out to *((char *)&*(a+i) + j), I think.
  51.  
  52. Hey, the guy who said to ask this on comp.lang.c is only 50%
  53. correct. This is FAQ item!
  54.  
  55. But anyway, not true in all cases. In other words, if you see this in a program:
  56.  
  57.    a[i][j]
  58.  
  59. you don't really know if it means reference a vector of vectors or not.
  60.  
  61. It all depends on how a was declared. If char a[][], or char **a, that
  62. is one thing.
  63.  
  64. But, it may also have been declared char a[5][10]. In which case
  65. the resulting memory operations are more like what you would expect from
  66. FORTRAN. Not two memory references but one.
  67.  
  68. The is one of the funky things about the C programming language.
  69.  
  70. -gjc
  71.