c - Reasons for compilation error -


enter image description here

the hackerearth facebook page uploads mcqs these everyday! so, suppose can share image here. seems me compilation error! because of fact there statement post-increments char array a in for loop! last 2 statements::

&lt;p<<k } 

are valid in way? < & > converted &gt; &lt; etc link says < gets converted &lt;! or compiler error?

was curious because couldn't trust myself compilation error closing bracket , &lt;p<<k; statement there in question!

the last 2 lines not supposed there. question differences between arrays , pointers. found answer: a array, not pointer, , can therefore not post-incremented.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -