vinit sharma wrote:why this declaration cause compile exception
int j=10;
for(int i-10 ,j+=90;i<j;i++){
j--;
}
look this
int i-10 ?
vinit sharma wrote:
And is there any diffrence between below two statement?
1.for(int i=0,j=100;i<j;i++,--j){;}
2.for(int i=0,j=100;i<j;i++,--j){}
i dont find any difference expect ";" which has no effort here