What is the function of line no. 7 in the code?

while(1)…

what does it mean? please explain. and why did not i get notification about my doubt through email? earlier it i get notified through email about my doubts and that was easy for me to store the solution and explanation of my doubt…please make sure to send explanation to my doubt through email…

hi @Anku47
int 1 translates to boolean true
so this statement is equivalent to while(true)
this means that this loop will keep on executing endlessly unless a break statement is encountered inside the loop

This is quite new thing i have learned today. what kind of more functions i can perform like this?

if i put while(0) then will it mean that until the loop is false???

@Anku47 if you put while(0) then this loop will not execute even once, because the condition inside the while loop must evaluate to true for it to execute.