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("value stored in arr[%d] = %d
",i,*(arr+i));

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