t3hseen said:
what the values of the following expressions: if illegal or unpredictable
please state so.
stat char *arrax ="C is my favourite";
Undefined symbol "stat". Thus illegal.
Undefined symbol, "stat". Thus illegal.
Symbol "arrax" is undefined.
Valid.
But why is everything static? Hmmmm.
Actually, the "static" has nothing to
do with legality or predictability of
the next expressions.
Undefined symbol "arrax", due to syntax
error.
See also arrax[8].
Undefined symbol "arrax", due to syntax
error.
See also arrax[0] + 2.
Undefined symbol "lp", due to syntax
error.
Since lp == arrax, expression is the
same as arrax[10].
"Unexpected end of file encountered",
due to '\' at end of line.
This one, and the others, are in a C
and C++ textbook as well as the FAQ.
See below.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library