#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#define MAX_LENGTH 100
#define NUM_STRINGS 10
int main(){
char *arr3[NUM_STRINGS] = { "first string",
"second string",
"third string",
"fourth string",
"fifth string" };
char* str1 = "string literal";
arr3[8] = str1;
arr3[9] = "hello there";
for (int i = 0; i < NUM_STRINGS; ++i) {
printf("%s, ", arr3[i]);
}
printf("
");
exit(EXIT_SUCCESS);
}
char ch_arr[3][10] = {
{'s', 'p', 'i', 'k', 'e', ' '},
{'t', 'o', 'm',' '},
{'j', 'e', 'r', 'r', 'y',' '}
};
char ch_arr[3][10] = {
"spike",
"tom",
"jerry"
};
char commands[][4] = {
"add",
"prn",
"lea",
"inc",
"mov"
};
char **strs;
int num_of_strs = 10;
strs = malloc (sizeof(char *) * num_of_strs );
char *A[] = {"Ahmet", "Mehmet", "Bülent", "Fuat"};
const char *a[2];
a[0] = "blah";
a[1] = "hmm";