Copy-Paste & Run this code & please inform me what is wrong here....
#include<stdio.h> struct student { char name[30]; int ID; char dp[50]; int phone; } student1, student2; int main() { printf("Enter your Full Name: "); fgets(student1.name,sizeof(student1.name),stdin); printf("Insert your ID no: "); fgets(student1.dp,sizeof(student1.dp),stdin); printf("Enter your department name: "); scanf("%s", &student1.dp); printf("Enter your mobile number: "); scanf("%d", &student1.phone); printf("\n\n"); printf("Enter your Full Name: "); fgets(student2.name,sizeof(student2.name),stdin); printf("Insert your ID no: "); scanf("%d", &student1.ID); printf("Enter your department name: "); fgets(student2.dp,sizeof(student2.dp),stdin); printf("Enter your mobile number: "); scanf("%d", &student2.phone);