Compound data type: Difference between revisions

Content added Content deleted
(Added more detailed description)
Line 63: Line 63:
'''Compiler:''' [[GCC]], [[Visual C plus plus|Visual C++]], [[BCC]], [[Watcom]]
'''Compiler:''' [[GCC]], [[Visual C plus plus|Visual C++]], [[BCC]], [[Watcom]]


// C++ style: typedef is not required
struct Point
struct Point
{
{
Line 68: Line 69:
int y;
int y;
};
};

// C style
typedef struct Point
{
int x;
int y;
} Point;


==[[C sharp|C#]]==
==[[C sharp|C#]]==