On Sat, Jul 26, 2008 at 5:52 PM, Robert Ryan <[EMAIL PROTECTED]> wrote:
>
> #include<stdio.h>
> #include<string.h>
> int main()
> {
>         char *s1[7]="hello1";     // 5

char s1[7] = "hello1";

You're actually defining an array of pointers, when you want to define
an array of chars. And the number in [] is superflous in this context.

-- 
PJH

'Two Dead in Baghdad' not 'product-friendly' - Kent Ertugrul, chief
executive of Phorm.

http://shabbleland.myminicity.com

Reply via email to