Wednesday, November 30, 2016

looping with goto

looping with goto

syntax:

label: 
if ( condition?)
{
.
.
.
goto label;
}
writing loop using goto is non standard c language programming practice.
nowadays computers uses virtual Memory Systems(Hard disk assumed as RAM)

if we use goto it need  more swappings from RAM to HARD DISK vice versa.

That's why goto is not preferred.

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home