Skip to content

Instantly share code, notes, and snippets.

@ramajd
Created December 4, 2019 09:33
Show Gist options
  • Save ramajd/ff40d13b9b21dd0a47e3ff7a41a43e49 to your computer and use it in GitHub Desktop.
Save ramajd/ff40d13b9b21dd0a47e3ff7a41a43e49 to your computer and use it in GitHub Desktop.
hello.c
// hello.c
#include <stdio.h>
int faulty_devider(int first, int second) {
return first / second;
}
int main() {
int a = 100;
int b = 0;
int c = faulty_devider(a, b);
printf("%d / %d = %d\n", b, a, c);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment