Answer:
Compiler error: Lvalue required in function main

This was the answer given along with the question..pls explain !!
On Mon, Jun 4, 2012 at 10:04 PM, abhishek <zeal.gosw...@gmail.com> wrote:

> This code have issue.
>
> names[3]=names[4];
> names[4]=t;
>
> -----Original Message-----
> From: algogeeks@googlegroups.com [mailto:algogeeks@googlegroups.com] On
> Behalf Of mahendra sengar
> Sent: Monday, June 04, 2012 4:13 AM
> To: Algorithm Geeks
> Cc: sengar.m...@gmail.com
> Subject: [algogeeks] Simple Question ,Find Error
>
>  main()
> {
> static char names[5][20]={"pascal","ada","cobol","fortran","perl"};
> int i;
> char *t;
> t=names[3];
> names[3]=names[4];
> names[4]=t;
> for (i=0;i<=4;i++)
> printf("%s",names[i]);
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to