I want to create a structure comprising of an integer and a pointer to it. However it doesnt seem to work and devC++ gives the following error
struct loha
{
int i;
int *p = &i; ...7
} *pp; ...8
Error : 7 I:\G\My CPP\structures.c [Warning] no semicolon at end of struct or union
7 I:\G\My CPP\structures.c syntax error before '=' token
8 I:\G\My CPP\structures.c [Warning] data definition has no type or storage class
In other words i want to know how to refer to a structure within the same structure..?? i am sure &i is not the write syntax.. what can be the possible correction.??
Thanks in advance .!