Structure data type does not behave like standard built in data type.
struct complex
{
int x;
float y;
};
struct complex c1,c2,c3;
now c3=c1+c2 is illegal
By default, all the member of a structure can be easily accessed by any function anywhere in the program.
struct complex
{
int x;
float y;
};
struct complex c1,c2,c3;
now c3=c1+c2 is illegal
By default, all the member of a structure can be easily accessed by any function anywhere in the program.
Tags:
Cpp