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

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/control_structures/do.txt · Last modified: 2024/02/16 01:04 (external edit)

Impressum Datenschutz