c - Reasons for compilation error -
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::
<p<<k }
are valid in way? < & > converted > < etc link says <
gets converted <
! or compiler error?
was curious because couldn't trust myself compilation error closing bracket , <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
Post a Comment