function calls mostly working
This commit is contained in:
parent
dd8eaee987
commit
e0495afd42
4 changed files with 151 additions and 2 deletions
26
05/main.c
26
05/main.c
|
@ -1,4 +1,28 @@
|
|||
typedef struct {
|
||||
long a;
|
||||
long aah[810];
|
||||
long b;
|
||||
} Structure;
|
||||
|
||||
Structure mkstruct(int x, int y) {
|
||||
Structure s;
|
||||
s.a = x;
|
||||
s.b = y;
|
||||
return s;
|
||||
}
|
||||
|
||||
Structure mkstruct1(int x) {
|
||||
return mkstruct(x, x*2);
|
||||
}
|
||||
|
||||
Structure mkstruct_a() {
|
||||
return mkstruct1(1033.3);
|
||||
}
|
||||
|
||||
|
||||
long main(int argc, char **argv) {
|
||||
return 43 >> 2;
|
||||
Structure t;
|
||||
t = mkstruct_a();
|
||||
return t.b;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue