|
|
1 program string_t {
2 // Declare
3 string i;
4 // Declare and init value
5 string j = "This is sample string";
6 // Declare multiple and assign
7 integer m,n,o,p = "Guess this";
8 // Print all the values
9 printf("value of i %s\n",i);
10 printf("value of j %s\n",j);
11 printf("value of m %s\n",m);
12 printf("value of n %s\n",n);
13 printf("value of o %s\n",o);
14 printf("value of p %s\n",p);
15
16 }
You could download file string_t.vr here
|