If and else if

is that correct?

1
2
3
4
5
6
7
8
9
10
11
void main(){
if(....){
}
else if (....){
}
else if (...){
statef ()
}
}
void statef(){
}
yeah... unless you have declared the function prototype

also I don't think void main() is legal (although it was legal in turbo which is ancient)
Last edited on
ok thank you!
also I missed the semi-colon...

statef() should be statef();
Topic archived. No new replies allowed.