
Implement a function that returns 1 when a long value can be stored in an int without changing, and 0 when that conversion would lose information.
fits_in_int(42)1fits_in_int(2147483647)1fits_in_int(2147483648)0fits_in_int(-2147483648)1fits_in_int(4294967338)0fits_in_int.c<limits.h>defines INT_MIN and INT_MAX
Run the tests to grade your code
Implement a function that returns 1 when a long value can be stored in an int without changing, and 0 when that conversion would lose information.
fits_in_int(42)1fits_in_int(2147483647)1fits_in_int(2147483648)0fits_in_int(-2147483648)1fits_in_int(4294967338)0fits_in_int.c<limits.h>defines INT_MIN and INT_MAX
Run the tests to grade your code
Memory will appear here