source: CIVL/examples/languageFeatures/arrayLiteral.cvl@ f2ab81f

1.23 2.0 main test-branch
Last change on this file since f2ab81f 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>
2void main(){
3char* a = "abc";
4int b = 9;
5int* c = &b;
6printf("a is %s\n", a);
7printf("b is %d\n", *c);
8printf("a is %s\n", "not really a.");
9int* test=(int[]){[2]=9};
10//printf("test[2] is %d", test[2]);
11}
12
Note: See TracBrowser for help on using the repository browser.