-
Notifications
You must be signed in to change notification settings - Fork 0
/
hell8.c
65 lines (48 loc) · 868 Bytes
/
hell8.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
struct my {
int jj;
int kk;
};
struct myst2 {
int ll;
int mm;
};
static struct my * myp;
long * myl;
static int yoop;
foop(int x)
{
printf("this is foop: %d\n", x);
printf("this is long foo - value %d\n", x);
}
myprint(int x, int y)
{
printf("this is kk: %d\n", x);
foop(x);
printf("this is mm: %d\n", y);
}
struct myst3 {
int aa;
int bb;
} myst3S;
/* myst3S; */
/* hold off on this for a second */
main()
{
struct my myst;
struct myst2 myst2S;
/* struct myst3 myst3S; */
int ii = 3;
myst3S.aa = 2001;
myst3S.bb = 2002;
myst.jj = 3;
myst.kk = 4;
myst2S.ll = 5;
myst2S.mm = 6;
printf("this is jj: %d\n", myst.jj);
printf("this is mm: %d\n", myst2S.ll);
printf("hello, world \n ");
myprint(myst.kk, myst2S.mm);
printf("the value is %d\n", ii);
foop(ii);
printf("goodbye, world \n");
}