Mercurial > hg > CbC > CbC_examples
view test_para.c @ 5:90e6146d24cd
fix stack1.c
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 22 Oct 2014 19:02:57 +0900 |
parents | 35d6eabeadb0 |
children | 586096c45873 |
line wrap: on
line source
#include<stdio.h> #include<stdlib.h> __code cs_exit(int a){ printf("cs_exit was called: a=%d.\n", a); exit(a); } __code cs0(int a, double b, int c, int d){ printf("cs0 was called: a=%d, b=%lf, c=%d, d=%d.\n", a, b, c, d); goto cs_exit( (int)(20*a + 4.4*b + 2022/c + 28*d) ); } __code cs_goto(){ goto cs0(11, 22.2, 33, 44); } int main(int argc, char **argv){ printf("it is in main.\n"); goto cs_goto(); return 0; }