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
Business Studies,
7 months ago
Physics,
7 months ago
Political Science,
1 year ago
Science,
1 year ago