Skip to content

Instantly share code, notes, and snippets.

@Alafun
Created January 22, 2022 09:30
Show Gist options
  • Save Alafun/daa357ac24f6a7f8e287d65abfa9b4fe to your computer and use it in GitHub Desktop.
Save Alafun/daa357ac24f6a7f8e287d65abfa9b4fe to your computer and use it in GitHub Desktop.
#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