[ create a new paste ] login | about

Link: http://codepad.org/mAlM9Uhe    [ raw code | output | fork ]

C, pasted on Jun 6:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>


int main()
{
  
  malabel:
    int a = 0;
    if( a < 10)
        goto print;
  print:
     printf("%i\n",a);
     goto malabel;
  return 0;
}


Output:
1
2
3
4
5
In function 'main':
Line 8: error: expected expression before 'int'
Line 9: error: 'a' undeclared (first use in this function)
Line 9: error: (Each undeclared identifier is reported only once
Line 9: error: for each function it appears in.)


Create a new paste based on this one


Comments: