Question: #include typedef struct { int * year; char month[4]; int * day; }dob; int main() { // declare a variable of the dob structure called
#include
typedef struct { int * year; char month[4]; int * day; }dob;
int main() { // declare a variable of the dob structure called birthday // assign the value Jan to the month part of birthday
printf("Birth month is %s ", birthday.month);
return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
