picoc/tests/34_array_assignment.c
zik.saleeba 2dd0dfb049 Changed tests to new standard library.
Fixed some regressions when converting to new standard library.


git-svn-id: http://picoc.googlecode.com/svn/trunk@432 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 11:58:52 +00:00

17 lines
194 B
C

#include <stdio.h>
int a[4];
a[0] = 12;
a[1] = 23;
a[2] = 34;
a[3] = 45;
printf("%d %d %d %d\n", a[0], a[1], a[2], a[3]);
int b[4];
b = a;
printf("%d %d %d %d\n", b[0], b[1], b[2], b[3]);