CJCoding With Joseph
15free / daySign inCreate account

Use typedef to define a struct type named Rect that has two int fields, width and height. A Rect is then created with width 5 and height 3, and its fields are printed separated by a space (see Expected Output).

The main function is already written; you only need to define the Rect type. There is no trailing newline.

Expected output

5 3

= newline. No newline after the last line.

Hints4 available
Topics
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.