What are the Limitations of C structure

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.

Post a Comment

Previous Post Next Post