Skip to content

Instantly share code, notes, and snippets.

@saifsmailbox98
Created April 21, 2018 03:12
Show Gist options
  • Save saifsmailbox98/9dd324b15cc15dc786471a469f30ba0a to your computer and use it in GitHub Desktop.
Save saifsmailbox98/9dd324b15cc15dc786471a469f30ba0a to your computer and use it in GitHub Desktop.
/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, Perl, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
struct Student{
int roll;
char name[50];
float fees;
char dob[11];
};
void main(){
struct Student s1;
printf("Enter name:");
gets(s1.name);
printf("Enter DOB: ");
gets(s1.dob);
printf("Enter roll:");
scanf("%d", &s1.roll);
printf("Enter fees:");
scanf("%f", &s1.fees);
printf("roll:%d\nname:%s\nfees:%f\ndob:%s", s1.roll, s1.name, s1.fees, s1.dob);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment