Use of while(1) loop

unclear about how it is an infinite loop, and its usage

hi @anikapassi17_6ce74879d4a8438b, it is infinite as while(1) converts to while(true) true remains always true never getting changed in the program