started hacking some experimental code
This commit is contained in:
parent
aceb2dafff
commit
ed15ce44d4
2 changed files with 24 additions and 0 deletions
12
c-basic/foo.c
Normal file
12
c-basic/foo.c
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int foo()
|
||||||
|
{
|
||||||
|
printf("I am foo\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
foo();
|
||||||
|
return 0;
|
||||||
|
}
|
12
c-basic/printf.c
Normal file
12
c-basic/printf.c
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int a = 10, b = 20;
|
||||||
|
|
||||||
|
printf("a = %d, b= %d\n", a, b);
|
||||||
|
printf("a = %d, b = %d\n", b, a);
|
||||||
|
printf("%d%d", a, b);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue