Created
January 22, 2022 09:30
-
-
Save Alafun/daa357ac24f6a7f8e287d65abfa9b4fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(){ | |
struct stud{ | |
int stud_id; | |
char stud_name[10]; | |
char stud_gender; | |
}; | |
struct stud istud; | |
scanf("%d%s %c",&istud.stud_id,istud.stud_name,&istud.stud_gender); | |
printf("%d %s %c", istud.stud_id, istud.stud_name, istud.stud_gender); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment