User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:control_structures:do

do

  Syntax 
  do instruction while ( condition );

C Sourcecode Example

#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
 
 
int main( void ) {
int i;
 
    do
        printf("Hello World no %i\n",i);
    while (i++);
 
return 0;
}
  output
  user@host~:# ./do
  Hello World no 0
  Hello World no 1
  Hello World no 2
  Hello World no 3
  Hello World no 4
  Hello World no ...
  Hello World no 1579
  
  and so on
advertising
c/control_structures/do.txt · Last modified: 2013/01/22 22:02 (external edit)

Impressum Datenschutz