view final_pre/pic/sample_code/cbc_example.cbc @ 14:c3c24250dc6b

tweak
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Sat, 15 Feb 2020 17:48:53 +0900
parents
children
line wrap: on
line source

int main (){
    int data = 0;
    goto cg1(&data);
}

__code cg1(int *datap){
    (*datap)++;
    goto cg2(datap);
}

__code cg2(int *datap){
    (*datap)++;
    printf("%d\n",*datap);
}