Category: Language
code: #include<stdio.h> typedef enum { SUN,MON,TUES,WED=70,THURS=80,FRI,SAT } days_of_week; typedef enum { FALSE,TRUE }Boolean; Boolean isEven(int n){ if(n%2==0)…
code: #include<stdio.h> typedef struct { int roll; char name[20]; double gp; double phy,chem,math; }sTudent; void inputStudent(sTudent *sp)…
code: #include<stdio.h> typedef struct { int roll; char name[20]; double gp; } sTudent; void inputStudent(sTudent *sp) {…
code: #include<stdio.h> typedef struct{ int age; char name[20]; double gp; }student; int main() { student s1; student…
code: #include<stdio.h> typedef int integer; //self declaration typedef struct Student student; struct Student{ int roll; char name[20];…
code: #include<stdio.h> struct Student{ int roll; char name[20]; double gp; }; int main() { struct Student s1,s2,s3;…
Recent Comments