Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a = 50;
- int b = 10;
- int *div;
- int *mod;
- ft_div_mod(a, b, div, mod);
- }
- void ft_div_mod(int a, int b, int *div, int *mod) {
- int resdiv = a / b;
- int resmod = a % b;
- *div = resdiv;
- *mod = resmod;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement