0268-string.c - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
0268-string.c (317B)
---
1 unsigned char s1[] = "hello";
2 signed char s2[] = "Hello";
3 char s3[] = "Hello World!";
4
5 int
6 main()
7 {
8 if (s1[1] != s2[1] || s1[1] != s3[1])
9 return 1;
10 if (s1[2] != s2[2] || s1[2] != s3[2])
11 return 2;
12 if (s1[3] != s2[3] || s1[3] != s3[3])
13 return 3;
14 if (s1[4] != s2[4] || s1[4] != s3[4])
15 return 4;
16 return 0;
17 }