--- In [email protected], "noname" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Which of ther following code fragment has the better memory 
> utilization and how.
>             
>             char *s2[2]={"cse 101", "cse 102"};
>             cahr s1[2][20]={"cse 101","cse 102"};

What do you mean by "better utilisation"?
If you ask for using less memory, then probably the definition
  char *s2[2]...
will allocate less memory because the two strings are allocated with
their actual length.
Despite that I don't see any big difference.

Regards,
Nico

Reply via email to