[OCLUG-devel] invalid initializer?
James Colannino
james at colannino.org
Mon Jul 5 19:57:57 PDT 2004
Hey everyone. I know that you can do, say, the following:
char string[] = "Hello";
But, I tried the following:
char filename[] = argv[1];
This resulted in the following compiler error:
error: invalid initializer
What does this mean? I thought that you could assign a string to a
variable-length character array at the time you initialize it. Am I
missing something?
James
--
My blog: http://www.crazydrclaw.com/
My homepage: http://james.colannino.org/
"There are no uninteresting things; only uninterested people." --G.K.
Chesterton
More information about the OCLUG-devel
mailing list