It ia not same. In abc2 integer i is undefined in print function(since integer i is declarated in loop scope and function print is out of loop scope) In second example you declare integer i before loop scope and function print and integer i is in the same scope In both examples loop for has no commands since ; in the end of the line
Yeahh that's correct... I got it... Thanks😊
Ohh... I was not known to that thing... Thanks for the knowledge 😇😊
Sneh Chauhan i remember that in visual studio 10 there was a setting named loop for scope and it was by default false. And this settings gives possibility to make abs2 example correct. But after VS12 this settongs become true by default and make error!!
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
Python palindrome challenge.
Number of Ones ( C++ ) question!