← Back to Structs
Question 124
Create and Print a Point
Create and Print a Point
A Point struct (with int fields x and y) is defined for you. In main, create a Point with x = 3 and y = 7, then print the two values separated by a space.
Expected Output:
3 7= newline. No newline after the last line.
Hints2 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.