Mercurial > hg > CbC > CbC_examples
view assignment.c @ 25:6324b8df04f1
lj_as2: fix segmentation fault
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Jan 2016 21:44:55 +0900 |
parents | f442aa72b246 |
children |
line wrap: on
line source
#include<stdio.h> int main(){ goto test(1,'a'); } __code test(int i, char c){ __code (*csp)(int,char,double) = test2; goto (*csp)(i,c,0.2); } __code test2(int i, char c, double d){ printf("i : %d \n",i); printf("i : %c \n",c); printf("i : %f \n",d); }