Attachment '2.c'

Download

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

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.