char [] issue

micsom's Avatar, Join Date: Oct 2008
Go4Expert Member
I just came accross a piece of code like:

char arrname[]={
#include "xxx.txt"
};

what does this mean?
micsom's Avatar, Join Date: Oct 2008
Go4Expert Member
anyways...thanx i just debugged it and got the answer...
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
It's perfectly valid; if xxx.txt contains
"hello",
"world"

then after preprocessing arrname will be defined as
char arrname[]={
"hello",
"world"
};