My issue
please check the errors and tell me clearly
My code
#include <stdio.h>
struct exam
{
int roll;
int marks;
char name[20];
};
int main(){
struct exam t;
scanf("%d",&t.roll);
scanf("%d",&t.marks);
scanf("%s",&t.name);
printf("\nName is : %s",t.name);
printf("\nRoll is : %d",t.roll);
printf("\nMarks are : %d",t.marks);
return 0;
}
Problem Link: Structures in C Practice Coding Problem