H
Herrcho
The following code is from Exercise 9.3 from 'A book on C'
//****************************************************
#include <stdio.h>
#define string char *
int main()
{
string a[] = {"I", "like", "to", "fight,"},
b[] = {"pinch,", "and", "bight."};
printf("%s %s %s %s %s %s %s\n", a[0], a[1], a[2], a[3], b[0], b[1], b[2]);
return 0;
}
//******************************************************
i don't know why the above doesn't run.
the Question is what single character do i need to add to make it works with
#define.
thanks in advance.
//****************************************************
#include <stdio.h>
#define string char *
int main()
{
string a[] = {"I", "like", "to", "fight,"},
b[] = {"pinch,", "and", "bight."};
printf("%s %s %s %s %s %s %s\n", a[0], a[1], a[2], a[3], b[0], b[1], b[2]);
return 0;
}
//******************************************************
i don't know why the above doesn't run.
the Question is what single character do i need to add to make it works with
#define.
thanks in advance.