// This sentence can not write, write a warning, if the following statement error, write this sentence
struct label *Jumpto;
for (int i=0; i< ; i++) {
NSLog(@ "0000====%d", i);
if (i==5) {
gotojumpto;
}
NSLog(@ "1111====%d", i);
jumpto:NSLog(@ " jump to this line ");
}
Run results
2014-12-17 17:46:43.465 mustdemo[1335:613765] 0000====0
2014-12-17 17:46:43.466 mustdemo[1335:613765] 1111====0
2014-12-17 17:46:43.466 mustdemo[1335:613765] jump to this line
2014-12-17 17:46:43.466 mustdemo[1335:613765] 0000====1
2014-12-17 17:46:43.466 mustdemo[1335:613765] 1111====1
2014-12-17 17:46:43.466 mustdemo[1335:613765] jump to this line
2014-12-17 17:46:43.466 mustdemo[1335:613765] 0000====2
2014-12-17 17:46:43.466 mustdemo[1335:613765] 1111====2
2014-12-17 17:46:43.466 mustdemo[1335:613765] jump to this line
2014-12-17 17:46:43.467 mustdemo[1335:613765] 0000====3
2014-12-17 17:46:43.467 mustdemo[1335:613765] 1111====3
2014-12-17 17:46:43.467 mustdemo[1335:613765] jump to this line
2014-12-17 17:46:43.467 mustdemo[1335:613765] 0000====4
2014-12-17 17:46:43.467 mustdemo[1335:613765] 1111====4
2014-12-17 17:46:43.467 mustdemo[1335:613765] jump to this line
2014-12-17 17:46:43.468 mustdemo[1335:613765] 0000====5
2014-12-17 17:46:43.469 mustdemo[1335:613765] jump to this line
2014-12-17 17:46:43.469 mustdemo[1335:613765] 0000====6
2014-12-17 17:46:43.469 mustdemo[1335:613765] 1111====6
2014-12-17 17:46:43.470 mustdemo[1335:613765] jump to this line
2014-12-17 17:46:43.471 mustdemo[1335:613765] 0000====7
2014-12-17 17:46:43.472 mustdemo[1335:613765] 1111====7
2014-12-17 17:46:43.472 mustdemo[1335:613765] jump to this line
2014-12-17 17:46:43.472 mustdemo[1335:613765] 0000====8
2014-12-17 17:46:43.472 mustdemo[1335:613765] 1111====8
2014-12-17 17:46:43.472 mustdemo[1335:613765] jump to this line
2014-12-17 17:46:43.472 mustdemo[1335:613765] 0000====9
2014-12-17 17:46:43.473 mustdemo[1335:613765] 1111====9
2014-12-17 17:46:43.473 mustdemo[1335:613765] jump to this line
OC Goto Syntax