aboutsummaryrefslogtreecommitdiff
path: root/testbed/custom_struct3.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-05-07 03:17:32 +0800
committerTeddy <ted.sybil@gmail.com>2014-05-07 03:17:32 +0800
commit52b29440f8f1310e0c074c8eb409e433c56bdd62 (patch)
tree6d91ceeb6594fe337541ed3f9f50cd33ee8881ca /testbed/custom_struct3.c
parent0ac22f0214ee283ce9bb053d691aeac823f875be (diff)
rename
Diffstat (limited to 'testbed/custom_struct3.c')
-rw-r--r--testbed/custom_struct3.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/testbed/custom_struct3.c b/testbed/custom_struct3.c
deleted file mode 100644
index d7060b3..0000000
--- a/testbed/custom_struct3.c
+++ /dev/null
@@ -1,15 +0,0 @@
-struct A {
- int x, y;
-} a[10];
-struct A f(struct A a) {
- a.x++;
- a.y++;
- return a;
-}
-int main(){
- int i;
- for (i = 1; i < 10; i++)
- a[i] = f(a[i - 1]);
- for (i = 0; i < 10; i++)
- printf("%d %d\n", a[i].x, a[i].y);
-}