Hi,
In your prog. name is an array.
and by '++name' you are try to change the base address of an array 'name'.
This is not a valid statement in C and that cause the error.
for printing your strings,
you can use name[i] etc ...
On 7/15/07, Ahmed Shabana <[EMAIL PROTECTED]> wrote:
>
> when I try this code :
>
> #include<stdio.h>
>
> main ()
> {
> char *name[] = { "ligal month","jan","fed" };
>
> printf( "%s\n" , (*++name)[1]);
> }
>
> this error message appears in compilation
>
> error: invalid lvalue in increment
>
> why ??????????????????????????
>
> [Non-text portions of this message have been removed]
>
>
>
[Non-text portions of this message have been removed]