c++ - Issue with string literal and integer constant -


यह क्या है?

  #include & lt; iostream & gt; Int main () {std :: cout & lt; & lt; "स्ट्र" 1 & lt; & lt; '\ N'; }   

मुझे लगता है कि यह असंभव है, लेकिन जीसीसी इस कोड को संकलित करता है (जबकि कमयू कंपाइलर नहीं)। क्यूं कर? और इस कोड के आउटपुट के बारे में क्या है?

str "

और सी कोड के रूप में संकलित होने पर क्यों अनुमति नहीं है?

यह एक बग जीसीसी 2.7.2 प्रतीत होता है। "somestring" अधिक से अधिक के बाद , यह इसे प्रभावी रूप से "somestring \" अधिकतरफाफ़ाफ़ " में परिवर्तित कर देता है (ध्यान दें कि अनुगामी आर को" "में परिवर्तित किया गया था।)।

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -