CJCoding With Joseph
15free / daySign inCreate account

Store a Name in a Struct

A struct Person holds a char name[20] and an int age. Create a person named "Ada" who is 36 years old, then print the output shown in Expected Output.

Use printf with %s for the name and %d for the age. There is no trailing newline.

Expected Output:

Ada is 36

= newline. No newline after the last line.

Hints2 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.