transgalactic
- 1,386
- 0
in this code i got a chat type pointer which is an array
who consists out of 4 char cells
in order that each pointer cell of this array will point to some place
we need to give it an address some thing like &chr
"Monday morning" is not an address and its not a single char
this misunderstanding is for every value in this array
and we have 4 cells and in char arrays the last cell has to be \0
so there only place for 3 values
the 4th cell is www.iota-six.co.uk instead of \0
but its wrong
every char array must end with \0
and here we changed \0 to www.iota-six.co.uk
this is wrong
??
??
who consists out of 4 char cells
in order that each pointer cell of this array will point to some place
we need to give it an address some thing like &chr
"Monday morning" is not an address and its not a single char
this misunderstanding is for every value in this array
and we have 4 cells and in char arrays the last cell has to be \0
so there only place for 3 values
the 4th cell is www.iota-six.co.uk instead of \0
but its wrong
every char array must end with \0
and here we changed \0 to www.iota-six.co.uk
this is wrong
??
Code:
char *strings[4] = { "Monday morning" , "6AM" ,"Sunrise" , "www.iota-six.co.uk"};
??