Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C Relationship Between Arrays and Pointers

#include <stdio.h>
int main() {
   int x[4];
   int i;

   for(i = 0; i < 4; ++i) {
      printf("&x[%d] = %p
", i, &x[i]);
   }

   printf("Address of array x: %p", x);

   return 0;
}
 
PREVIOUS NEXT
Tagged: #C #Relationship #Between #Arrays #Pointers
ADD COMMENT
Topic
Name
5+1 =