Regds<BR>Ajay Kumar
i = 0 (1) is acceptable. But the i should be incremented after assigning 0 to i. Right? Then, it should become 1.
Can you make it bit more clear? Sorry, if I am asking the basics!!!
Regds<BR>Ajay Kumar
Ajay. I compiled and run your code. as expected, the output is:
i = 0
i = 1, j = 0
the second line makes prefect sense, the assingment happens first, j was assigned to 0. then i incremented from 0 to 1.
however, to the first line, i to the left hand was assigned to 0.
then what about the increment?? the execution should give i the value of 1. what am I missing here?? please help.
Regds<BR>Ajay Kumar
SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |