0
whan c++ doesnot ignores line
when c++ doesnot ignores lines ?if it ignores than why?
2 Respuestas
+ 1
Any language ignores lines for two reasons; first line If line is commented then line is not even considered by compiler , second reason is that line is unreachable. Example for first;
int main()
{
/* I am comment ignore me*/
Do_tasks();
}
Example for second
int main()
{
while(1)
{
}
I_am_unreachable_task();
}
+ 1
Thesmallest while(1) creates endless loop, If somehow conditio n is broken then It becomes reachable