
Write a function that returns a pointer to the first int equal to value inside the half-open range [first, last), and last itself when the value never shows up.
offset of find_int(a, a + 5, 13), a = {42, 7, 13, 7, 99}Expected result
2For your own tracking. Tests grade your code.
offset of find_int(a, a + 5, 8), a = {42, 7, 13, 7, 99}Expected result
5offset of find_int(a, a, 1), a = {1, 2, 3}Expected result
0Expected files
find_int.cAllowed functions
None. Write every helper yourself.

v0.40: Create exercises. Challenge the community.
Meet Studio →Write a function that returns a pointer to the first int equal to value inside the half-open range [first, last), and last itself when the value never shows up.
offset of find_int(a, a + 5, 13), a = {42, 7, 13, 7, 99}Expected result
2For your own tracking. Tests grade your code.
offset of find_int(a, a + 5, 8), a = {42, 7, 13, 7, 99}Expected result
5offset of find_int(a, a, 1), a = {1, 2, 3}Expected result
0Expected files
find_int.cAllowed functions
None. Write every helper yourself.

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.