0
What error is this?
Error : Variable n might not have been initialized for(int i=0;<n;i++)
6 Answers
+ 2
The reason why you are receiving this error is because you have not made a statement that assigns variable "n" to something, in this case, to an integer.
On top of the for loop, try something similar to this (you may change the number):
int n = 10;
Hope that helps!
+ 2
my friend, for loop take three arguments, your condition does not indicate to any thing
i<n, you does not mention here. and if their is an error again try to give n = 10 or something else
0
Got it, thank you guysss!!!!
0
n was initialized means n doesn't equal or stand for anything
0
Hi
- 1
7303322359# jio bad who reason my you are