blueroomelectronics
Well-Known Member
I'm just learning C (Microchips XC8) and its been great fun to learn.
Some examples show
But this works too. Are they the same thing?
But I don't see a way to initialize that one. So
Some examples show
Code:
struct Goo{
int Day;
int Month;
int Year;
};
struct Goo Date;
Code:
struct {
int Day;
int Month;
int Year;
} Date;
Code:
struct Goo { // declare placeholder
int Day;
int Month;
int Year;
};
struct Goo Date = {2, 4, 5}; // create & initialize variable Date
Last edited: