cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Array element
Array element
Nov 13, 2010 at 11:48am UTC
ravikandagal1
(11)
I have a C program like this :
int main()
{
int a[5]={1,2,3,4,5};
printf("%d %d \n",a,(&a+1));
return 0;
}
Output:
Address of 1st element of array a ,Address next to the element a[5]...
Why (&a+1) points to address next to a[5] ?
Last edited on
Nov 13, 2010 at 11:49am UTC
Topic archived. No new replies allowed.