Skip to content

Instantly share code, notes, and snippets.

@rasgo-cc
Last active November 14, 2015 00:29
Show Gist options
  • Save rasgo-cc/e5b64204f500b8a68678 to your computer and use it in GitHub Desktop.
Save rasgo-cc/e5b64204f500b8a68678 to your computer and use it in GitHub Desktop.
Assign a new value to j based on i and previous value of j
uint32_t i = 999999999;
uint32_t j = 1;
for( ; i > 0 ; i--) j += i;
printf("j final value: %u\n", j);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment