CJCoding With Joseph

Lowest Value in an Array of Structs

An array of four struct Item values holds the value fields 34, 12, 27, and 8. Find the smallest value and print it:

8

Start by assuming the first item is the minimum, then compare the rest. There is no trailing newline.

Expected Output:

8
Topics:
Structs
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.