Attachment '1.c'

Download

   1 #include <stdio.h>
   2 
   3 //int x = -1;
   4 
   5 int main ()
   6 {
   7     {
   8         //int x;
   9         //int *px;
  10         //x = 7;
  11         {
  12             int x;
  13             x = 6; 
  14             printf("x = %d\n", x );
  15             //px = &x; // silly behaviour
  16         }
  17         printf("x = %d\n", x );
  18         //printf("old x = %d\n", *px ); // not guaranteed!
  19     } 
  20     return 0;
  21 }

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.