Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

arrays and pointers

#include<stdio.h>

int main()
{
    int arr[5] = {10, 20, 30, 40, 50}, i;

    for(i = 0; i < 5; i++)
        printf("Address of arr[%d] = %p
",i,arr+i);

    return 0;
}
Source by www.log2base2.com #
 
PREVIOUS NEXT
Tagged: #arrays #pointers
ADD COMMENT
Topic
Name
6+1 =