|
|
1.1 root 1: #include <stdio.h>
2: #include <string.h>
3:
4: main()
5: {
6: char array[50] = {"this is a test \\"};
7: printf("Length of array is %d\n",strlen(array));
8: printf("array[%d] is {%d} array[%d] is {%d} array[%d] is {%d}\n",
9: strlen(array), array[strlen(array)], strlen(array) -1,
10: array[strlen(array) -1], strlen(array) -2,
11: array[strlen(array) -2]);
12: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.