1.23
2.0
main
test-branch
|
Last change
on this file since ed630aa was 30d2a5a, checked in by Manchun Zheng <zmanchun@…>, 12 years ago |
|
Translated a string into an array literal expression of char literals; added a test accordingly; updated executePrintf accordingly.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@557 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
224 bytes
|
| Line | |
|---|
| 1 | #include<stdio.h>
|
|---|
| 2 | void main(){
|
|---|
| 3 | char* a = "abc";
|
|---|
| 4 | int b = 9;
|
|---|
| 5 | int* c = &b;
|
|---|
| 6 | printf("a is %s\n", a);
|
|---|
| 7 | printf("b is %d\n", *c);
|
|---|
| 8 | printf("a is %s\n", "not really a.");
|
|---|
| 9 | int* test=(int[]){[2]=9};
|
|---|
| 10 | //printf("test[2] is %d", test[2]);
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.