Attachment '1.c'

Download

   1 #include <stdio.h>
   2 
   3 
   4 int main()
   5 {
   6     int py[10];
   7     int px[10];
   8     
   9     printf("px[0] = %d\n", px[0] );
  10     printf("*(px+0) = %d\n", *(px+0) );
  11     printf("py[5] = %d\n", py[5] );
  12     printf("*(py+5) = %d\n", *(py+5) );
  13     printf("px[15] = %d\n", px[15] );
  14     printf("*(px+15) = %d\n", *(px+15) );
  15     printf("---------\n");
  16     px[0] = 7;
  17     px[9] = 8;
  18     px[15] = 10; // py[5]
  19 
  20     printf("px[0] = %d\n", px[0] );
  21     printf("*(px+0) = %d\n", *(px+0) );
  22     printf("py[5] = %d\n", py[5] );
  23     printf("*(py+5) = %d\n", *(py+5) );
  24     printf("px[15] = %d\n", px[15] );
  25     printf("*(px+15) = %d\n", *(px+15) );
  26     
  27     return 0;
  28 }

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.