wrote:
> hi...i am new to c programming....please explain me as to why should
> an character array be declared as static...thanx...eric
>
In what context?
The same rules apply for a character array as for any other variable.
If the array is in a compilation unit and you don't want it to be
visible elsewhere, you declare it static to avoid polluting the global
namespace with the array's name.
If the array has function scope and you wish the value to be retained
between calls, you would declare it static.
--
Ian Collins.