โ Back to Structs
Question 336
Print an Array of Structs
Print an Array of Structs
An array of threestruct Pointvalues holds{1,2},{3,4}, and{5,6}. Loop over the array and print each point asx,yon its own line: 1,2 3,4 5,6 Each line, including the last, ends with a newline. Use aforloop andprintf("%d,%d\n", ...).
Expected Output:
1,2 3,4 5,6
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.