As we studied in C keywords chapter, goto is a C keyword which is used to take the control where you want.
We learn use of goto keyword in below C program.
#include<stdio.h> int main() { int count = 0; while (count <= 10) if (count == 5) { goto here;
} } if (count == 5) printf(“Count = %d\n”,count);
} printf(“Count is not equal to 5\n”); } here: return 0; } Explanation :- |