I am not telling you directly because this is something that should be absolutely clear to you. Think logically. What a roll number should be? a char, a double, float, int, string. How do you use it. How do you manipulate it. Think about these things about all the fields you want to use.
Since you are learning, i think it's best if you can tell us what variables types you would be using for different fields and why. You will be corrected if you are wrong. But this is something you must be clear before creating any dictionary or something.
Is there a code you can share with us here? I agree with ~ swim ~, I'd like to see how the code looks like also ...
* Anything string like, go with char.
* Age shouldn't accept negative, so unsigned integer.
Not sure about other fields, that's why I prefer to see your code first ...
for string input, in scanf, no need to put &.
Is this may be you are searching..,. ?
(if it not solved) ?
Also for gender, would it be better to use an enum as there are only a finite number of genders (whatever that number is this day and age)? The downside of using an enum is that if you read this data as user input, you will need an additional function to convert it from a char perhaps to the enum.
~ swim ~
I am using csv for the saved inputs but i am still confused about variable types i tried using trial and error boolean double float etc for the different fields but it the output was differrent so i tried asking here for the proper variable types for each of the following written above