Tag: Typedef

21
May
2017

Typedef Enum Union Project

code: #include<stdio.h> typedef union { double weight; int size; char color[10]; } Description; typedef struct { int…

21
May
2017

Typedef Enum

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)…

21
May
2017

Use Pointer with Struct

code: #include<stdio.h> typedef struct{ int age; char name[20]; double gp; }student; int main() { student s1; student…