In java, in for loop; Can we declare and initialize variable like:-
for(int a= 1;a<=10;a++);
Answers
Answered by
1
YEAH WE CAN INTIATIALIZE THE VARIABLES LIKE THIS ALSO...
Answered by
0
yes u can
the declaration is same in both java and c++
the declaration is same in both java and c++
Similar questions
Math,
6 months ago
Social Sciences,
6 months ago
Biology,
6 months ago
Political Science,
1 year ago
Science,
1 year ago