Difference between revisions of "C language"

From Bitnami MediaWiki
Jump to navigation Jump to search
(Created page with " <syntaxhighlight lang=C> void increment(void) { static unsigned int counter = 0; counter++; printf("%d", counter); } int main(void) { for (int i = 0; i < 5; i++) {...")
 
Line 1: Line 1:
 +
 +
 +
  
 
<syntaxhighlight lang=C>
 
<syntaxhighlight lang=C>

Revision as of 17:23, 18 March 2022



void increment(void) {
  static unsigned int counter = 0;
  counter++; 
  printf("%d", counter);
}

int main(void) {
  for (int i = 0; i < 5; i++) {
    increment();
  }
  return 0; 
}