[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
Can you not stick it in a #define ???? On Thu, 01 Aug 2002 10:15:56 +0100 Simon Waters <Simon@xxxxxxxxxxxxxxxxxxxx> wrote:
Hi, I want to define an array, which is constant and global, (except for it's initialisation of course). I can stick "extern short a[2] ;" in a common header file, and "short a[2] = { 7 , 0 };". Is there any way to tell the compiler this is constant elsewhere, so nothing can change it? Simon, realising how little he knows about C. -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.
---------------------- Rich Smith University of Exeter -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.