CJCoding With Joseph

Print an Array of Structs

An array of three struct Point values holds {1,2}, {3,4}, and {5,6}. Loop over the array and print each point as x,y on its own line:

1,2
3,4
5,6

Each line, including the last, ends with a newline. Use a for loop and printf("%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.