Created
April 21, 2018 03:12
-
-
Save saifsmailbox98/9dd324b15cc15dc786471a469f30ba0a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/****************************************************************************** | |
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