source: CIVL/examples/languageFeatures/pointerAddBad.cvl@ b144b24

1.23 2.0 main test-branch
Last change on this file since b144b24 was d010d61, checked in by Ziqing Luo <ziqing@…>, 12 years ago

new pointerAdd () function and couple of examples

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1146 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 175 bytes
RevLine 
[d010d61]1#include <civlc.h>
2#include <stdio.h>
3
4$input double a[10][10][10];
5
6void main(){
7
8printf("*(&a[0][0][0] + 1000) is out of bound: %.4f\n"
9, *(&a[0][0][0] + 1000));
10
11}
12
Note: See TracBrowser for help on using the repository browser.