0

What error is this?

Error : Variable n might not have been initialized for(int i=0;<n;i++)

31st Oct 2016, 2:26 AM
frhnims
6 odpowiedzi
+ 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!
31st Oct 2016, 2:38 AM
Scylla
Scylla - avatar
+ 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
31st Oct 2016, 3:58 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
0
Got it, thank you guysss!!!!
31st Oct 2016, 4:21 AM
frhnims
0
n was initialized means n doesn't equal or stand for anything
31st Oct 2016, 5:29 AM
Curt
Curt - avatar
0
Hi
30th Nov 2018, 5:14 AM
Mukesh Kumar
Mukesh Kumar - avatar
- 1
7303322359# jio bad who reason my you are
31st Oct 2016, 3:00 AM
Abhay Kumar Thakur
Abhay Kumar Thakur - avatar