Skip to content
Snippets Groups Projects
Select Git revision
  • 42f97a8e224ae8b712b92e0ec327d7f9d9414922
  • main default protected
  • increase_steps
  • auto_mutation
4 results

main.py

Blame
  • functions-18.c 418 B
    #include <stdio.h>
    
    int a = 0, b = 3;
    
    void foo (void)
    {
      b++;
      static int a = 5;
      int b = 7;
      printf ("foo(): " "a = %d, b = %d\n", a, b);
      a++;
    }
    
    int main (void)
    {
      printf ("main(): " "a = %d, b = %d\n", a, b);
      foo ();
      printf ("main(): " "a = %d, b = %d\n", a, b);
      a = b = 12;
      printf ("main(): " "a = %d, b = %d\n", a, b);
      foo ();
    /*
      printf ("main(): " "a = %d, b = %d\n", a, b);
    */
      return 0;
    }