source:
CIVL/mods/dev.civl.com/examples/languageFeatures/splitFormatBad.cvl@
8553be8
| Last change on this file since 8553be8 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 223 bytes | |
| Rev | Line | |
|---|---|---|
| [08299ed] | 1 | /* A syntax exception (Invalid precision) example. |
| 2 | */ | |
| 3 | #include <civlc.cvh> | |
| 4 | #include <stdio.h> | |
| 5 | ||
| 6 | void main() { | |
| 7 | char c = 's'; | |
| 8 | ||
| 9 | printf("The value of c is %.2c",c);//Invalid precision | |
| 10 | printf("The value of c is %2c",c); | |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
