CJCoding With Joseph

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
๐Ÿ“ฅ Auto-Input:
Mia 20\n
This input is automatically fed to your program's stdin
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.