[ create a new paste ] login | about

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

C, pasted on May 29:
//import core.stdc.stdio: printf;
#include "stdio.h"

int i = 3;

int main() {
    {
        int some_condition = 1;
        if (some_condition)
            goto block_end;

        /* dummy code */
    } block_end:

    {
        int i = 7;
        printf("%i", i); //Local i
    }

    printf("%i", i); // Global i (?)
    return 0;
}


Output:
1
73


Create a new paste based on this one


Comments: