A
A
Arti-Jack2016-10-04 23:26:26
Java
Arti-Jack, 2016-10-04 23:26:26

How to decipher the strange syntactic notation of the cycle?

How to decode this syntax correctly:

int i = 0; int j = 5;
tp: for(;;) { // ?
    for(;;) 
    if (i > --j) { break tp; }
}

If I understand correctly, this tpis a block. But here's what it is ;; in for ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Moseychuk, 2016-10-04
@Arti-Jack

But here's what it is ;; in for?

Endless cycle. Analog while(true).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question