โ Back to Structs
Question 328
Store a Name in a Struct
Store a Name in a Struct
Astruct Personholds achar name[20]and anint age. Create a person named"Ada"who is 36 years old, then print: Ada is 36 Useprintfwith%sfor the name and%dfor 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.