Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!adm!PEPRBV%CFAAMP.BITNET@husc6.harvard.EDU From: PEPRBV%CFAAMP.BITNET@husc6.harvard.EDU (Bob Babcock) Newsgroups: comp.lang.c Subject: initializing Message-ID: <11276@brl-adm.ARPA> Date: 15 Jan 88 03:19:50 GMT Sender: news@brl-adm.ARPA Lines: 13 If I want to initialize a global variable in an include file, and have the initialization statement appear only in the main program, I can use something like #ifdef MAIN_PROGRAM #define INITIAL_VALUE(x) =x #else #define INITIAL_VALUE(x) #endif int i INITIAL_VALUE(1); But this doesn't work for an array, and I can't figure out anything which does. Is there some trick I'm missing?