Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   char [] issue (http://www.go4expert.com/forums/char-issue-t23843/)

micsom 11Nov2010 14:44

char [] issue
 
I just came accross a piece of code like:

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

what does this mean?

micsom 11Nov2010 16:01

Re: char [] issue
 
anyways...thanx i just debugged it and got the answer...

xpi0t0s 12Nov2010 22:20

Re: char [] issue
 
It's perfectly valid; if xxx.txt contains
"hello",
"world"

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


All times are GMT +5.5. The time now is 09:53.