AD1

Tuesday, 25 April 2017

Find the output of the following code


Output
lvalue required as increment operand

Explanation
after reading the code for the first time you may get tricked and say the output will be

c++
python
java 
but this not the output , because you will get compiler error in line 6 when you try to modify the base address of an array which is already a constant pointer

No comments:

Post a Comment