โ Back to Structs
Question 341
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: 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.