Update Student Record
You are given:
- An integer rollNumber
- A string name
You have to implement a structure called Student which contains the following fields:
- roll (integer)
- name (string)
Your task is to Assign rollNumber to roll and Assign name to name. Finally, return the populated Student structure.
Note:
- The structure name must be exactly Student
- The field names must be exactly roll and name
- Any deviation will be considered incorrect.
Example 1:
Input: rollNumber = 23, name = "Raj"
Output:
Raj
23
Example 2:
Input: rollNumber = 5, name = "Nilesh"
Output:
Nilesh
23
Still unsure what the problem is asking ?
Let’s go through a few more examples, step by step, to make it clearer.
Constraints:
- 1 <= rollNumber <= 100
- name consist of only lowercase and uppercase English letters
- 1 <= name.size() <= 100