Created
December 4, 2019 09:33
-
-
Save ramajd/ff40d13b9b21dd0a47e3ff7a41a43e49 to your computer and use it in GitHub Desktop.
hello.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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