Monday, September 15, 2008

ecp tut 11

1.
char letter = '$';

2.
char array[18] = "Pointers are fun!";

3.
char a_string[17] = "This is a string";

4.
char *quote = { "Smile, Friday is almost here!" };

or

char *quote[100] = { "Smile, Friday is almost here!" };

5.
char string1[7];
char *string2 = "Second";
string1 = string2;

6.
char *string1;
char *string2 = "Second";
strcpy(string1, string2)

7.
....aih, suan le bah, wait for solution..

No comments: