VR Indian Wanderers 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
Travel Blog - VR Indian Wanderers
VR Indian Wanderers
Govt. Jobs Portal
Govt. Jobs Portal
Free Chart Maker
Make free animated Charts from .CSV
Search
Youtube Channel
Podcast
Subscribe to Email Updates
Connect With Us
VR Indian Wanderers Youtube RSS Feed
© 2024 Learn with Vikas Suhag. All Rights Reserved.