CJCoding With Joseph
15free / daySign inCreate account

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

= newline. No newline after the last line.

Hints2 available
Topics:
Structs
📥 Auto-Input:
Mia 20\n
This input is automatically fed to your program's stdin
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.