The information in this article applies to:
When the variable buff has been declared in an assembly-language program, such as the following
there is a difference between the two following C declarations:
The difference is that the first declaration says there is a block of memory that is named buff; the second says there is something called buff that is a pointer. This difference can be seen by referencing buff as follows:
If buff is declared as an array, the referencing is correct.
However, if buff is declared as a pointer, the referencing is incorrect. The data pointed to by buff (ab in this example) is translated into a memory address, then x bytes are added to it generating an incorrect reference. For additional information, please see the following articles in the Microsoft Knowledge Base: Q44463 Difference Between Arrays and Pointers in C Additional query words:
Keywords : kbLangC kbVC kbVC100 kbVC150 kbVC151 kbVC152 kbVC200 kbVC210 kbVC400 kbVC500 kbVC600 |
Last Reviewed: July 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |