Youtube RSS Feed
Learn with Vikas Suhag
Program to demonstrate usage of "goto" in C Language
Dec 26, 2021   Vikas Suhag
"goto" in C Language

#include <stdio.h>
int main () {
/* local variable definition */
int a = 10; /* do loop execution */
LOOP:do {
if( a == 15)
{
a = a + 1;
printf("We are at GOTO");
goto LOOP;
}
printf("value of a: %d\n", a);
a++;
}
while( a < 20 );
}


Leave a Comment

* Email will not be published.
All comments are only visible after approval.
Most Viewed articles
Search
Subscribe to Email Updates
Vikas Suhag

I am Engineer, Developer, Teacher, Blogger, Vlogger, Traveller, Photographer...

I have been developing websites, writing blogs and recording videos during my travel while being a full tim ...

Youtube Channel
Podcast
Subscribe to Email Updates
Connect With Us
Youtube RSS Feed
© 2022 Learn with Vikas Suhag. All Rights Reserved.