Saturday, September 5, 2020

goto statement in c programming

 goto statement :

• The function of goto statement is to transfer the programs control unconditionally, where you want.

• It requires label to identify the place where to control will be transferred.

• It can be used, anywhere in the program.

• It is not associted with any loop.

• "goto" is a keyword.

• It is unconditional jump instruction.

• Example:

{

     if(i<=10)

     { break;}

     printf("%d",i);

    i=i+1;

}


1 comment:

Object Paradigm Oriented Programming in C++ / object oriented programming / History of C++/ paradiagram in c++/C devolop, Operating System, Unix operating system, Assembly language, popular in world, Programming language.

  Object Paradigm Oriented Programming  Two programmers, Brian Kernighan and Dennis Ritchie developed a new language called C, in 1972.  C l...