← Back to Structs
Question 411
Lowest Value in an Array of Structs
Lowest Value in an Array of Structs
An array of fourstruct Itemvalues holds thevaluefields 34, 12, 27, and 8. Find the smallestvalueand print it (see Expected Output). Start by assuming the first item is the minimum, then compare the rest. There is no trailing newline.
Expected Output:
8= newline. No newline after the last line.
Hints4 available
Sign in to use hintsTopics:
Structs
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · 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.