Hello Everyone,

I'm really new to c programming, so bear with my simple question.  I'm a
Perl programmer, who has just started learning C(not even experienced
at Perl).  I can get around and usually manage through lots of work to get
what I need done, done!  In Perl I can assign a string to an array element.

ex: $array[0] = "example";


In C it seems that you can only assign an individual letter to each element.

ex: array[0] = 'c';

Whenever I try to do what I do in Perl all the time, in c I get compile
errors.  What am I doing wrong?
Can I even do this in c?

If you can't do that in c, that's OK.  It's just really convenient to do it
the Perl way!

Thanks,
Andre


[Non-text portions of this message have been removed]

Reply via email to