โ Back to Structs
Question 144
Modify a Struct via Pointer
Modify a Struct via Pointer
Complete the function birthday so it increases a Student's age by 1 THROUGH A POINTER (so the change is visible in main). The main function reads a name and age, calls birthday, then prints the new age. Example: input 'Mia 20' prints 21.
Expected Output:
21
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.