what is deference between following two for loop statements
for(y=1;y<10;y++) x=y;
and for(y=1;(x=y)<10;y++);
what is deference between following two for loop statements
for(y=1;y<10;y++) x=y;
and for(y=1;(x=y)<10;y++);
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
in the first statement condition is checked first and assignment is done later,,,,, and in the second one… assignment is being done before checking the condition…:)