Skip to content

Instantly share code, notes, and snippets.

@fsouza
Created September 19, 2011 03:20
Show Gist options
  • Save fsouza/1225912 to your computer and use it in GitHub Desktop.
Save fsouza/1225912 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char const* argv[]) {
div_t divmod = div(8, 3);
printf("%d - %d", divmod.quot, divmod.rem);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment