CJCoding With Joseph

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:

Ada is 36

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

Expected Output:

Ada is 36
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.