[Dev-C++] how come n+1 = *(n+1) ????
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: daniel <da...@op...> - 2001-12-04 05:53:13
|
read the program below and the question.i am not able to understand how it is
happening.your help is appreciated.
#include <stdio.h>
int main()
{int n[5][2]={
{0,1},
{2,3},
{4,5},
{6,7},
{8,9}
};
printf("\n%u",&n[1][0]);
printf("\n%u",n+1);
printf("\n%u",*(n+1));
system("PAUSE");
return 0;
} /*QUESTION) while it is apparent that n+1 will give
the address of n[1][0] but how come *(n+1) also
gives the address of n[1][0]
instead of n+1 & *(n+1) u can take n+i & *(n+i)
for i=0 to i=4 */
-------------------------------------------
The Fastest Browser on Earth.
Get your FREE download of Opera at http://www.opera.com/download/
-------------------------------------------
|