Xv6 with picoc & Linkage editor  v1.0
The project delineate mutual cohesion between c library, linkage editor ( linker), interpreter and operating system by porting the same on xv6 kernel
 All Data Structures
23_type_coercion.c
00001 #include <stdio.h>
00002 
00003 void charfunc(char a)
00004 {
00005     printf("char: %c\n", a);
00006 }
00007 
00008 void intfunc(int a)
00009 {
00010     printf("int: %d\n", a);
00011 }
00012 
00013 void floatfunc(float a)
00014 {
00015     printf("float: %f\n", a);
00016 }
00017 
00018 charfunc('a');
00019 charfunc(98);
00020 charfunc(99.0);
00021 
00022 intfunc('a');
00023 intfunc(98);
00024 intfunc(99.0);
00025 
00026 floatfunc('a');
00027 floatfunc(98);
00028 floatfunc(99.0);
00029 
00030 printf("%c %d %f\n", 'a', 'b', 'c');
00031 printf("%c %d %f\n", 97, 98, 99);
00032 printf("%c %d %f\n", 97.0, 98.0, 99.0);
00033 
00034 char b = 97;
00035 char c = 97.0;
00036 
00037 printf("%d %d\n", b, c);
00038 
00039 int d = 'a';
00040 int e = 97.0;
00041 
00042 printf("%d %d\n", d, e);
00043 
00044 float f = 'a';
00045 float g = 97;
00046 
00047 printf("%f %f\n", f, g);
00048 
00049 void main() {}
 All Data Structures