| string-array.c - Hele programmet. | Lektion 7 - slide 24 : 26 Program 1 |
#include <stdio.h>
int main(void) {
char *numbers[] = {"one", "two", "three"};
char ch1, ch2, ch3, ch4;
ch1 = **numbers;
ch2 = numbers[0][0];
ch3 = *(*(numbers+1) + 1);
ch4 = numbers[2][2];
printf("ch1 = %c, ch2 = %c, ch3 = %c, ch4 = %c\n", ch1, ch2, ch3, ch4);
return 0;
}