Mercurial > hg > CbC > CbC_examples
view test01.c @ 2:35d6eabeadb0
modify Makefile. we can use makefile to compile outside CbC examples. (some examples are not compilable...)
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 22 Oct 2014 02:06:29 +0900 |
parents | bacef8675607 |
children |
line wrap: on
line source
#include<stdio.h> int test_goto2(int a,int b,int c,int d,int e,int f,int g,int h,int i,int j); int test_code(void){ printf("\t\ttest_code: return 10\n"); return 10; } int test_goto(int a){ printf("\ttest_goto: a = %d\n", a); return test_code(); } int main(int argc, char **argv){ int ret; printf("test code\n"); ret = test_goto(20); printf("main: ret = %d\n", ret); return test_goto2(10,20,30,40,50,60,70,80,90,100); return 0; } int test_code2(int a,int b,int c,int d,int e,int f,int g,int h,int i,int j){ printf("\t\ttest_code: return 10\n"); printf("a=%d,b=%d,c=%d,d=%d,e=%d,f=%d,g=%d,h=%d,i=%d,j=%d\n",a,b,c,d,e,f,g,h,i,j); return a+b+c+d+e+f+g+h+i+j; } int test_goto2(int a,int b,int c,int d,int e,int f,int g,int h,int i,int j){ printf("\ttest_goto: a = %d\n", a); return test_code2(a,b,c,d,e,f,g,h,i,j); }