home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples1.exe / MyC / Tests / t07.myc < prev    next >
Encoding:
Text File  |  2000-06-23  |  213 b   |  29 lines

  1.  
  2. static int a;
  3.  
  4. void foo()
  5. {
  6.   int b;
  7.   b = 1;
  8.   a = b;
  9. }
  10.  
  11. void main()
  12. {
  13.   int b;
  14.   int c;
  15.  
  16.   a = 1;
  17.   b = 2;
  18.  
  19.   c = (a+b)*2;
  20.  
  21.   if (a < c && c > a)
  22.     {
  23.     b = 4;
  24.     }
  25.   foo();
  26. }
  27.  
  28.  
  29.