CJCoding With Joseph
15free / daySign inCreate account

Define a struct type named Student with a text field name (a char array) and an integer field grade. Create a Student for "Alice" with a grade of 90, and print it exactly as: Alice: 90 followed by a newline. The easiest way to set a string field is to give the values when you declare the variable.

Expected output

Alice: 90

= newline. The output ends with a newline, so print one after the last line.

Hints2 available
Topics
Structs
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.