This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Newline in constant string


When I wrote some codes like this
char *MyName="I am Dave Ra
ggett";

gcc will treat the string as "I am Dave Ra\nggett".so I think gcc should 
give some
warning in such case. e.g. "missing '\' in your constant string".
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]